18 lines
390 B
YAML
18 lines
390 B
YAML
services:
|
|
db:
|
|
image: postgres:17-alpine
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_USER: ${DB_USER:-postgres}
|
|
POSTGRES_PASSWORD: ${DB_PASSWORD:-postgres}
|
|
POSTGRES_DB: ${DB_NAME:-postgres}
|
|
ports:
|
|
- "${DB_PORT:-5432}:5432"
|
|
volumes:
|
|
- db_data:/var/lib/postgresql/data
|
|
app:
|
|
build: .
|
|
ports:
|
|
- "3900:3000"
|
|
volumes:
|
|
db_data: |