Update docker-compose.yml
This commit is contained in:
parent
f0077fabb8
commit
8739350b10
1 changed files with 24 additions and 5 deletions
|
@ -6,8 +6,27 @@ services:
|
||||||
env_file:
|
env_file:
|
||||||
- ./.env
|
- ./.env
|
||||||
volumes:
|
volumes:
|
||||||
- ./config.json:/app/config.json
|
|
||||||
- ./nicknames.txt:/app/nicknames.txt
|
- ./nicknames.txt:/app/nicknames.txt
|
||||||
- ./domains.txt:/app/domains.txt
|
- ./domains.txt:/app/domains.txt
|
||||||
extra_hosts:
|
depends_on:
|
||||||
- host.docker.internal:host-gateway
|
- db
|
||||||
|
networks:
|
||||||
|
- default
|
||||||
|
|
||||||
|
db:
|
||||||
|
restart: unless-stopped
|
||||||
|
restart: always
|
||||||
|
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
|
||||||
|
|
||||||
|
networks:
|
||||||
|
default:
|
||||||
|
|
Loading…
Reference in a new issue