gwei-alert-bot/docker-compose.yml

29 lines
586 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
pull_policy: build
build: .
container_name: gwei-alert-bot
working_dir: /usr/app
dns:
- 1.1.1.1
environment:
- NODE_ENV=production
restart: unless-stopped
volumes:
redisdb: