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
|
||||
volumes:
|
||||
- ./config.json:/app/config.json
|
||||
- ./nicknames.txt:/app/nicknames.txt
|
||||
- ./domains.txt:/app/domains.txt
|
||||
extra_hosts:
|
||||
- host.docker.internal:host-gateway
|
||||
- ./nicknames.txt:/app/nicknames.txt
|
||||
- ./domains.txt:/app/domains.txt
|
||||
depends_on:
|
||||
- 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