2023-04-17 21:49:20 -04:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
2023-04-17 23:06:37 -04:00
|
|
|
gwei-bot-redis:
|
2023-04-17 21:49:20 -04:00
|
|
|
image: redis
|
2023-04-17 23:06:37 -04:00
|
|
|
container_name: gwei-bot-redis
|
2023-04-17 21:49:20 -04:00
|
|
|
restart: always
|
|
|
|
volumes:
|
2023-04-17 23:06:37 -04:00
|
|
|
- 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:
|
2023-04-17 23:06:37 -04:00
|
|
|
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
|
2023-04-17 23:06:37 -04:00
|
|
|
restart: unless-stopped
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
redisdb:
|