23 lines
480 B
YAML
23 lines
480 B
YAML
version: '3'
|
|
services:
|
|
db:
|
|
restart: always
|
|
build: .
|
|
environment:
|
|
POSTGRES_USER: &pguser postgres
|
|
POSTGRES_PASSWORD: &pgpass postgres-passwd
|
|
POSTGRES_DB: &pgdb jaquiz
|
|
|
|
TZ: &tz Asia/Bangkok
|
|
PGTZ: *tz
|
|
ports:
|
|
- 5433:5432 # pgAdmin connection port
|
|
|
|
volumes:
|
|
- ./pgdata:/var/lib/postgresql/data
|
|
|
|
- ./initdb.d:/docker-entrypoint-initdb.d
|
|
- ./cache:/app/cache
|
|
- ./assets:/app/assets
|
|
- ./src:/app/src
|