gwei-alert-bot/docker-compose.yml

28 lines
563 B
YAML
Raw Normal View History

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