docker-compose.yml aktualisiert
This commit is contained in:
parent
85f48907a4
commit
2df70b2a6b
|
|
@ -1,7 +1,7 @@
|
||||||
services:
|
services:
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:16-alpine
|
image: postgres:16-alpine
|
||||||
container_name: mitai-db
|
container_name: mitai-db-prod
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_DB: mitai_prod
|
POSTGRES_DB: mitai_prod
|
||||||
|
|
@ -9,8 +9,6 @@ services:
|
||||||
POSTGRES_PASSWORD: ${DB_PASSWORD:-change_me_in_production}
|
POSTGRES_PASSWORD: ${DB_PASSWORD:-change_me_in_production}
|
||||||
volumes:
|
volumes:
|
||||||
- mitai_postgres_data:/var/lib/postgresql/data
|
- mitai_postgres_data:/var/lib/postgresql/data
|
||||||
ports:
|
|
||||||
- "127.0.0.1:5432:5432"
|
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "pg_isready -U mitai_prod"]
|
test: ["CMD-SHELL", "pg_isready -U mitai_prod"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user