gwei-alert-bot/docker-compose.yml

31 lines
628 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
- DISCORD_BOT_TOKEN
- DISCORD_CLIENT
- RPC_URL
restart: unless-stopped
volumes:
redisdb: