forked from imbytecat/fullstack-starter
chore: update Docker Compose configuration
- Use postgres:18-alpine image - Update environment variable format - Rename volume from pgdata to postgres_data - Increase healthcheck interval to 10s
This commit is contained in:
+9
-7
@@ -5,23 +5,25 @@ services:
|
||||
db:
|
||||
condition: service_healthy
|
||||
ports:
|
||||
- '3000:3000'
|
||||
- "3000:3000"
|
||||
environment:
|
||||
DATABASE_URL: postgres://postgres:postgres@db:5432/postgres
|
||||
- DATABASE_URL=postgres://postgres:postgres@db:5432/postgres
|
||||
|
||||
db:
|
||||
image: postgres:18
|
||||
image: postgres:18-alpine
|
||||
# ports:
|
||||
# - "5432:5432"
|
||||
volumes:
|
||||
- pgdata:/var/lib/postgresql/data
|
||||
- postgres_data:/var/lib/postgresql
|
||||
environment:
|
||||
POSTGRES_USER: postgres
|
||||
POSTGRES_PASSWORD: postgres
|
||||
POSTGRES_DB: postgres
|
||||
healthcheck:
|
||||
test: [ 'CMD', 'pg_isready', '-U', 'postgres' ]
|
||||
interval: 5s
|
||||
test: [ "CMD", "pg_isready", "-U", "postgres" ]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
volumes:
|
||||
pgdata:
|
||||
postgres_data:
|
||||
|
||||
Reference in New Issue
Block a user