docker compose apdejt
This commit is contained in:
@@ -28,16 +28,21 @@ services:
|
||||
|
||||
db:
|
||||
image: postgres:latest
|
||||
# env_file:
|
||||
# - .server/.env
|
||||
restart: always
|
||||
user: postgres
|
||||
volumes:
|
||||
- db-data:/var/lib/postgresql/data
|
||||
environment:
|
||||
POSTGRES_USER: ${PG_USER}
|
||||
POSTGRES_PASSWORD: ${PG_PASSWORD}
|
||||
POSTGRES_DB: ${PG_DATABASE}
|
||||
volumes:
|
||||
- postgres-data:/var/lib/postgresql/data
|
||||
ports:
|
||||
- "${PG_PORT}:${PG_PORT}"
|
||||
POSTGRES_PASSWORD: ${PG_PASSWORD}
|
||||
expose:
|
||||
- ${PG_PORT}
|
||||
healthcheck:
|
||||
test: [ "CMD", "pg_isready", "-U", "${PG_USER}" ]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
volumes:
|
||||
postgres-data:
|
||||
Reference in New Issue
Block a user