-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
51 lines (48 loc) · 1.19 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
version: "3.8"
services:
zagreus-postgres:
image: postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: zagreus
ports:
- 5432:5432
postgres:
image: postgres:13.1-alpine
ports:
- "5437:5432"
environment:
- POSTGRES_USER=hydra
- POSTGRES_PASSWORD=secret
- POSTGRES_DB=hydra
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 2s
timeout: 5s
retries: 5
hydra-migrate:
image: oryd/hydra:v1.9.2
depends_on:
postgres:
condition: service_healthy
environment:
- DSN=postgres://hydra:secret@postgres:5432/hydra?sslmode=disable
command: migrate sql -e --yes --config /hydra/hydra.yml
volumes:
- ./:/hydra
hydra:
image: oryd/hydra:v1.9.2
ports:
- "4445:4445"
- "4444:4444"
depends_on:
hydra-migrate:
condition: service_completed_successfully
environment:
- CORS_DEBUG=true
- SERVE_PUBLIC_CORS_DEBUG=true
- DSN=postgres://hydra:secret@postgres:5432/hydra?sslmode=disable
command: serve all --dangerous-force-http --config /hydra/hydra.yml
volumes:
- ./:/hydra