-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhydra.yml
More file actions
43 lines (43 loc) · 1.21 KB
/
hydra.yml
File metadata and controls
43 lines (43 loc) · 1.21 KB
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
version: '3.7'
services:
hydra:
image: oryd/hydra:v1.11.8
ports:
- "4444:4444" # Public port
- "4445:4445" # Admin port
command: serve -c /etc/config/hydra/hydra.yml all --dangerous-force-http
volumes:
- type: bind
source: ./hydra-dev-config.yml
target: /etc/config/hydra/hydra.yml
environment:
- DSN=postgres://hydra:secret@postgresd:5432/hydra?sslmode=disable&max_conns=20&max_idle_conns=4
- SECRETS_SYSTEM=ThisIsJustASuperToken!
restart: unless-stopped
depends_on:
- hydra-migrate
networks:
- intranet
hydra-migrate:
image: oryd/hydra:v1.11.8
environment:
- DSN=postgres://hydra:secret@postgresd:5432/hydra?sslmode=disable&max_conns=20&max_idle_conns=4
- SECRETS_SYSTEM=ThisIsJustASuperToken!
command: migrate -c /etc/config/hydra/hydra.yml sql -e --yes
volumes:
- type: bind
source: ./hydra-dev-config.yml
target: /etc/config/hydra/hydra.yml
restart: on-failure
networks:
- intranet
postgresd:
image: postgres:9.6
environment:
- POSTGRES_USER=hydra
- POSTGRES_PASSWORD=secret
- POSTGRES_DB=hydra
networks:
- intranet
networks:
intranet: