16 lines
418 B
YAML
16 lines
418 B
YAML
version: '2'
|
|
|
|
services:
|
|
postgres:
|
|
image: postgres:${POSTGRES_VERSION}
|
|
container_name: postgres
|
|
environment:
|
|
- "TZ=UTC"
|
|
- "POSTGRES_USER=${POSTGRES_USER}"
|
|
- "POSTGRES_PASSWORD=${POSTGRES_PASSWORD}"
|
|
ports:
|
|
- "${HOST_PORT}:${CONTAINER_PORT}"
|
|
volumes:
|
|
- "./postgres-data:/var/lib/postgresql/data"
|
|
- "./src/main/java/db/migration:/docker-entrypoint-initdb.d"
|