-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.auth.dev.yml
81 lines (74 loc) · 1.73 KB
/
compose.auth.dev.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
version: '3.7'
services:
hydra:
image: oryd/hydra:v1.9.2
ports:
- 4444:4444
- 4445:4445
- 5555:5555
command:
serve -c /etc/config/hydra/hydra.yml all --dangerous-force-http
volumes:
-
type: bind
source: ./hydra-config/dev
target: /etc/config/hydra
environment:
- DSN=postgres://postgres:osm-teams@auth-db/osm-teams?sslmode=disable
depends_on:
- hydra-migrate
restart: always
networks:
- intranet
hydra-migrate:
image: oryd/hydra:v1.9.2
depends_on:
- auth-db
command:
migrate -c /etc/config/hydra/hydra.yml sql -e --yes
volumes:
-
type: bind
source: ./hydra-config/dev
target: /etc/config/hydra
environment:
- DSN=postgres://postgres:osm-teams@auth-db/osm-teams?sslmode=disable
restart: on-failure
networks:
- intranet
teams:
build: .
depends_on:
- hydra
- auth-db
environment:
- HYDRA_ADMIN_HOST=http://hydra:4445
- HYDRA_TOKEN_HOST=http://hydra:4444
- HYDRA_AUTHZ_HOST=http://localhost:4444
- DSN=postgres://postgres:osm-teams@auth-db/osm-teams?sslmode=disable
ports:
- 8989:8989
env_file:
.env
restart: always
command:
sh -c "npm run migrate && npm start"
networks:
- intranet
auth-db:
platform: linux/amd64
image: postgis/postgis:11-3.3-alpine
restart: 'always'
ports:
- 5431:5432
environment:
- ALLOW_IP_RANGE=0.0.0.0/0
- POSTGRES_DB=osm-teams
- POSTGRES_PASSWORD=osm-teams
- PGDATA=/opt/postgres/data
volumes:
- ./docker-data/hydra-db:/opt/postgres/data
networks:
- intranet
networks:
intranet: