dev #2

Merged
backdev merged 9 commits from dev into main 2025-11-25 13:32:46 +08:00
2 changed files with 7 additions and 16 deletions
Showing only changes of commit 0ba5dcc1d8 - Show all commits
+1 -1
View File
@@ -1,4 +1,4 @@
POSTGRES_DB=no_copy_db
POSTGRES_DB=no_copy_
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
POSTGRES_PORT=5432
+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: