Created
June 30, 2024 21:26
-
-
Save ivystopia/6e10b4a58aeb10f1055a87d69e89042f to your computer and use it in GitHub Desktop.
Example docker-compose
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
monero-node: | |
container_name: Monero-Node | |
image: ghcr.io/sethforprivacy/simple-monerod:latest | |
restart: unless-stopped | |
network_mode: bridge | |
deploy: | |
resources: | |
limits: | |
memory: '16G' | |
logging: | |
options: | |
max-size: '10m' | |
max-file: '10' | |
env_file: | |
- .env | |
volumes: | |
- bitmonero:/home/monero/.bitmonero | |
- ./monero-node-resolv.conf:/etc/resolv.conf | |
ports: | |
- '18080:18080' # P2P network port | |
- '18081:18081' # RPC full port - Authentication is set. Not open to Internet. | |
- '18083:18083' # ZeroMQ port | |
command: > | |
--out-peers 256 | |
--in-peers 256 | |
--enable-dns-blocklist | |
--data-dir /home/monero/.bitmonero | |
--limit-rate 92160 | |
--enforce-dns-checkpointing | |
--db-sync-mode fast | |
--log-level 0 | |
--max-log-file-size 6553600 | |
--max-log-files 16 | |
--rpc-bind-ip 0.0.0.0 | |
--confirm-external-bind | |
--zmq-pub=tcp://0.0.0.0:18083 | |
--rpc-login $RPC_USERNAME:$RPC_PASSWORD | |
environment: | |
- TERM="xterm-256color" | |
healthcheck: | |
test: | |
[ | |
'CMD', | |
'curl', | |
'--user', | |
'$RPC_USERNAME:$RPC_PASSWORD', | |
'--fail', | |
'http://localhost:18081/get_info', | |
] | |
interval: 30s | |
timeout: 5s | |
retries: 3 | |
portainer: | |
container_name: Portainer | |
image: portainer/portainer-ce:latest | |
ports: | |
- '9000:9000' | |
- '9443:9443' | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock | |
- portainer_data:/data | |
command: | | |
-H unix:///var/run/docker.sock | |
restart: unless-stopped | |
pihole: | |
container_name: Pi-hole | |
image: pihole/pihole:latest | |
env_file: | |
- .env | |
ports: | |
- '53:53/tcp' | |
- '53:53/udp' | |
- '3141:80/tcp' | |
environment: | |
TZ: 'Europe/London' | |
WEBPASSWORD: $PIHOLE_PASSWORD | |
volumes: | |
- pihole_data:/etc/pihole | |
- dnsmasq_data:/etc/dnsmasq.d | |
restart: unless-stopped | |
volumes: | |
portainer_data: {} | |
pihole_data: {} | |
dnsmasq_data: {} | |
bitmonero: {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment