-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
59 lines (55 loc) · 1.09 KB
/
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
52
53
54
55
56
57
58
59
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
env_file:
.env
depends_on:
- hydra-migrate
restart: always
networks:
- intranet
hydra-migrate:
image: oryd/hydra:v1.9.2
command:
migrate -c /etc/config/hydra/hydra.yml sql -e --yes
volumes:
-
type: bind
source: ./hydra-config/dev
target: /etc/config/hydra
env_file:
.env
restart: on-failure
networks:
- intranet
teams:
build: .
depends_on:
- hydra
environment:
- HYDRA_ADMIN_HOST=http://hydra:4445
- HYDRA_TOKEN_HOST=http://hydra:4444
- HYDRA_AUTHZ_HOST=http://localhost:4444
ports:
- 8989:8989
env_file:
.env
restart: always
command:
sh -c "npm run migrate && npm start"
networks:
- intranet
networks:
intranet: