gwei-alert-bot/docker-compose.yml

32 lines
674 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
- REDIS_URL=redis://gwei-bot-redis:6379
- DISCORD_BOT_TOKEN
- DISCORD_CLIENT
- RPC_URL
restart: unless-stopped
volumes:
redisdb: