Skip to content

Instantly share code, notes, and snippets.

@matthewdarwin
Created March 14, 2019 02:13
Show Gist options
  • Save matthewdarwin/7294eea48a0bb43c426be59107ce4d73 to your computer and use it in GitHub Desktop.
Save matthewdarwin/7294eea48a0bb43c426be59107ce4d73 to your computer and use it in GitHub Desktop.
example docker-compose.yml for nodeos
version: "3"
services:
wireguard:
stop_grace_period: 60s
image: image.eosn.io/eosnation/wireguard
container_name: wireguard
hostname: eosn-jungle
sysctls:
- "net.ipv4.conf.all.rp_filter=2"
cap_add:
- net_admin
- sys_module
ports:
- 80:80
- 443:443
- 9090:9090
- 8888:8888
- 9876:9876
- 4321:4321
volumes:
- /local/docker/wireguard:/etc/wireguard
- /var/run/wireguard:/var/run/wireguard
logging:
driver: syslog
options:
syslog-facility: daemon
tag: wireguard
networks:
nodeos:
ipv4_address: 172.25.0.2
nodeos:
stop_grace_period: 60s
image: image.eosn.io/eosnation/eos:eosio-1.6.0
command: nodeos-wrapper
container_name: nodeos
network_mode: "service:wireguard"
volumes:
- /local/docker/config:/root/.local/share/eosio/nodeos/config
- /local/docker/data:/root/.local/share/eosio/nodeos/data
- /local/docker/bin/nodeos-wrapper:/opt/eosio/bin/nodeos-wrapper
logging:
driver: syslog
options:
syslog-facility: daemon
tag: nodeos
filter:
stop_grace_period: 60s
image: image.eosn.io/eosnation/patroneos_filter
container_name: filter
network_mode: "service:wireguard"
volumes:
- /local/docker/config/filter.json:/etc/patroneos/config.json
logging:
driver: syslog
options:
syslog-facility: daemon
tag: patroneos
depends_on:
- nodeos
nginx:
stop_grace_period: 60s
image: image.eosn.io/eosnation/bpnginx
container_name: bpnginx
network_mode: "service:wireguard"
volumes:
- /var/log/nginx:/var/log/nginx
- /local/docker/config/nginx.conf:/etc/nginx/sites-enabled/default
- /local/docker/config/fullchain.pem:/etc/cert/fullchain.pem
- /local/docker/config/privkey.pem:/etc/cert/privkey.pem
- /local/docker/config/status-password:/etc/nginx/status-password
logging:
driver: syslog
options:
syslog-facility: daemon
tag: nginx
depends_on:
- filter
monitor:
stop_grace_period: 60s
stop_signal: KILL
image: image.eosn.io/eosnation/bpmonitor
container_name: bpmonitor
network_mode: "service:wireguard"
volumes:
- /var/run/nodeos:/var/run/nodeos
logging:
driver: syslog
options:
syslog-facility: daemon
tag: monitor
depends_on:
- nodeos
networks:
nodeos:
driver: bridge
ipam:
config:
- subnet: 172.25.0.0/24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment