This commit is contained in:
vladp
2025-11-24 22:39:08 +07:00
parent 8a9768bd2a
commit 0ba5dcc1d8
2 changed files with 7 additions and 16 deletions
+6 -15
View File
@@ -5,37 +5,28 @@ services:
image: postgres:17
restart: always
environment:
POSTGRES_DB: no_copy_db
POSTGRES_DB: no_copy_
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_PORT: 5432
POSTGRES_HOST: postgres
PGDATA: /data/postgres
ports:
- "5432:5432"
- "54320:5432"
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres -p 5432" ]
interval: 10s
timeout: 5s
retries: 20
container_name: postgres
app:
build: .
container_name: no_copy_app
environment:
POSTGRES_DB: no_copy_db
POSTGRES_DB: no_copy_
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_PORT: 5432
POSTGRES_HOST: postgres
POSTGRES_HOST: db
depends_on:
db:
condition: service_healthy
- db
ports:
- "8080:8080"
volumes:
pgdata:
pgdata: