2022-04-09 02:46:54 +08:00
|
|
|
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:
|
2023-02-04 04:37:45 +08:00
|
|
|
- "./postgres-data:/var/lib/postgresql/data"
|
2022-04-09 02:46:54 +08:00
|
|
|
- "./src/main/java/db/migration:/docker-entrypoint-initdb.d"
|