16 lines
416 B
YAML
16 lines
416 B
YAML
services:
|
|
postgres:
|
|
image: postgres:16-alpine
|
|
container_name: pandektes-postgres
|
|
restart: always
|
|
environment:
|
|
POSTGRES_USER: ${POSTGRES_USER:-postgres}
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-yourPassword}
|
|
POSTGRES_DB: ${POSTGRES_DB:-pandektes}
|
|
ports:
|
|
- "${POSTGRES_PORT:-5432}:5432"
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
|
|
volumes:
|
|
postgres_data: |