2026-03-25 23:55:36 +07:00
|
|
|
version: '3.8'
|
|
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
postgres:
|
2026-05-15 12:02:24 +08:00
|
|
|
image: postgres:15-alpine
|
2026-06-18 11:35:56 +08:00
|
|
|
container_name: yunhaifinance-postgres
|
2026-03-25 23:55:36 +07:00
|
|
|
environment:
|
2026-05-15 12:02:24 +08:00
|
|
|
POSTGRES_USER: ${DB_USER:-postgres}
|
|
|
|
|
POSTGRES_PASSWORD: ${DB_PASSWORD:-changeme}
|
|
|
|
|
POSTGRES_DB: ${DB_NAME:-company_finance}
|
2026-03-25 23:55:36 +07:00
|
|
|
ports:
|
2026-06-18 11:35:56 +08:00
|
|
|
- "10052:5432"
|
2026-03-25 23:55:36 +07:00
|
|
|
volumes:
|
2026-06-18 11:35:56 +08:00
|
|
|
- yunhaifinance-postgres-data:/var/lib/postgresql/data
|
2026-05-15 12:02:24 +08:00
|
|
|
- ./backend/migrations:/docker-entrypoint-initdb.d
|
2026-06-18 11:35:56 +08:00
|
|
|
networks:
|
|
|
|
|
- yunhaifinance-network
|
2026-03-25 23:55:36 +07:00
|
|
|
|
|
|
|
|
volumes:
|
2026-06-18 11:35:56 +08:00
|
|
|
yunhaifinance-postgres-data:
|
|
|
|
|
|
|
|
|
|
networks:
|
|
|
|
|
yunhaifinance-network:
|