2023-09-19 19:59:20 +00:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
bot:
|
|
|
|
# image: securetowntop/ua-bot:arm64-latest
|
2024-01-05 19:29:23 +00:00
|
|
|
# image: 374fe5dee955
|
|
|
|
build: .
|
2023-09-19 19:59:20 +00:00
|
|
|
restart: always
|
|
|
|
env_file:
|
|
|
|
- ./.env
|
|
|
|
volumes:
|
2024-01-05 19:29:23 +00:00
|
|
|
- ./whitelist.txt:/app/whitelist.txt
|
|
|
|
- ./blacklist.txt:/app/blacklist.txt
|
2023-09-19 19:59:20 +00:00
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
networks:
|
|
|
|
- default
|
|
|
|
|
|
|
|
db:
|
|
|
|
restart: unless-stopped
|
2024-01-05 19:29:23 +00:00
|
|
|
# restart: always
|
2023-09-19 19:59:20 +00:00
|
|
|
image: postgres:15-alpine
|
|
|
|
networks:
|
|
|
|
- default
|
|
|
|
env_file:
|
|
|
|
- .db.env
|
|
|
|
volumes:
|
|
|
|
- ./db:/var/lib/postgresql/data
|
|
|
|
healthcheck:
|
|
|
|
test: "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"
|
|
|
|
interval: 5s
|
|
|
|
retries: 20
|
|
|
|
|
2024-01-05 19:29:23 +00:00
|
|
|
networks:
|
|
|
|
default:
|
2023-09-19 19:59:20 +00:00
|
|
|
|