gwei-alert-bot/docker-compose.yml
2023-04-18 17:02:29 -07:00

28 lines
563 B
YAML

version: '3'
services:
gwei-bot-redis:
image: redis
container_name: gwei-bot-redis
restart: always
volumes:
- redisdb:/data
command: redis-server --save 300 1 --appendonly yes
environment:
- REDIS_REPLICATION_MODE=master
- REDIS_APPENDONLY=yes
- REDIS_SAVE=300 1
gwei-alert-bot:
depends_on:
- gwei-bot-redis
build: .
container_name: gwei-alert-bot
working_dir: /usr/app
dns:
- 1.1.1.1
environment:
- NODE_ENV=production
restart: unless-stopped
volumes:
redisdb: