2020-07-16 01:53:21 +08:00
|
|
|
version: '3.7'
|
|
|
|
|
|
|
|
services:
|
2022-06-18 04:27:49 +08:00
|
|
|
postgres:
|
|
|
|
build: ./postgres
|
|
|
|
environment:
|
|
|
|
POSTGRES_MULTIPLE_DATABASES: hydra,kratos
|
|
|
|
POSTGRES_DB: hangar
|
|
|
|
POSTGRES_USER: hangar
|
|
|
|
POSTGRES_PASSWORD: 'hangar'
|
2021-11-14 00:49:06 +08:00
|
|
|
ports:
|
2022-06-18 04:27:49 +08:00
|
|
|
- "5432:5432"
|
2021-11-14 00:49:06 +08:00
|
|
|
volumes:
|
2022-06-18 04:27:49 +08:00
|
|
|
- postgres_data:/var/lib/postgresql/data
|
2020-07-16 01:53:21 +08:00
|
|
|
volumes:
|
2022-06-18 04:27:49 +08:00
|
|
|
postgres_data:
|
2021-11-13 13:52:33 +08:00
|
|
|
|
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
name: hangar-network
|