2020-07-16 01:53:21 +08:00
|
|
|
version: '3.7'
|
|
|
|
|
|
|
|
services:
|
|
|
|
db:
|
|
|
|
build: ./db
|
|
|
|
environment:
|
2021-10-17 05:16:13 +08:00
|
|
|
POSTGRES_MULTIPLE_DATABASES: hydra,kratos
|
2020-10-01 16:29:40 +08:00
|
|
|
POSTGRES_DB: hangar
|
2020-10-01 16:45:07 +08:00
|
|
|
POSTGRES_USER: hangar
|
|
|
|
POSTGRES_PASSWORD: 'hangar'
|
2020-07-16 01:53:21 +08:00
|
|
|
ports:
|
|
|
|
- "5432:5432"
|
|
|
|
volumes:
|
|
|
|
- db_data:/var/lib/postgresql/data
|
2021-11-14 00:49:06 +08:00
|
|
|
cockroach:
|
|
|
|
image: cockroachdb/cockroach
|
|
|
|
ports:
|
|
|
|
- "26257:26257"
|
|
|
|
- "26000:8080"
|
|
|
|
volumes:
|
|
|
|
- cockroach_data:/cockroach/cockroach-data
|
|
|
|
command:
|
|
|
|
- "start-single-node"
|
|
|
|
- "--insecure"
|
2020-07-16 01:53:21 +08:00
|
|
|
volumes:
|
|
|
|
db_data:
|
2021-11-14 00:49:06 +08:00
|
|
|
cockroach_data:
|
2021-11-13 13:52:33 +08:00
|
|
|
|
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
name: hangar-network
|