ritual/deploy/docker-compose.yaml
2024-09-25 17:52:04 +03:00

87 lines
1.7 KiB
YAML

services:
node:
image: ritualnetwork/infernet-node:1.3.0
ports:
- "0.0.0.0:4000:4000"
volumes:
- ./config.json:/app/config.json
- node-logs:/logs
- /var/run/docker.sock:/var/run/docker.sock
tty: true
networks:
- network
depends_on:
- redis
- infernet-anvil
restart:
unless-stopped
extra_hosts:
- "host.docker.internal:host-gateway"
stop_grace_period: 1m
container_name: infernet-node
logging:
driver: "json-file"
options:
max-file: 5
max-size: 10m
redis:
image: redis:latest
ports:
- "6379:6379"
networks:
- network
volumes:
- ./redis.conf:/usr/local/etc/redis/redis.conf
- redis-data:/data
restart:
unless-stopped
logging:
driver: "json-file"
options:
max-file: 5
max-size: 10m
fluentbit:
image: fluent/fluent-bit:latest
expose:
- "24224"
environment:
- FLUENTBIT_CONFIG_PATH=/fluent-bit/etc/fluent-bit.conf
volumes:
- ./fluent-bit.conf:/fluent-bit/etc/fluent-bit.conf
- /var/log:/var/log:ro
networks:
- network
restart:
unless-stopped
logging:
driver: "json-file"
options:
max-file: 5
max-size: 10m
infernet-anvil:
image: ritualnetwork/infernet-anvil:1.0.0
command: --host 0.0.0.0 --port 3000 --load-state infernet_deployed.json --prune-history -b 1
ports:
- "8545:3000"
networks:
- network
container_name: infernet-anvil
restart:
unless-stopped
logging:
driver: "json-file"
options:
max-file: 5
max-size: 10m
networks:
network:
volumes:
node-logs:
redis-data: