-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
42 lines (40 loc) · 1.2 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
version: '3.3'
services:
postgres:
image: postgres:latest
ports:
- "5432:5432"
environment:
POSTGRES_PASSWORD: password
volumes:
- ${PWD}/initdb.sh:/docker-entrypoint-initdb.d/init-user-db.sh
hydra:
depends_on:
- hydra-migrate
image: oryd/hydra:latest
ports:
- "4444:4444" # Public port
- "4445:4445" # Admin port
- "5555:5555" # Port for hydra token user
command:
serve all --dangerous-force-http
environment:
# https://www.ory.sh/docs/hydra/configuration
# - LOG_LEVEL=debug
- URLS_SELF_ISSUER=http://localhost:4444
- URLS_CONSENT=http://localhost:3000/consent
- URLS_LOGIN=http://localhost:3000/login
- DSN=postgres://hydra:hello@postgres:5432/hydra?sslmode=disable
- SECRETS_SYSTEM=youReallyNeedToChangeThis
- SECRETS_COOKIE=youReallyNeedToChangeThisToo
- OAUTH2_EXPOSE_INTERNAL_ERRORS=1
restart: unless-stopped
hydra-migrate:
depends_on:
- postgres
image: oryd/hydra:latest
environment:
- DSN=postgres://hydra:hello@postgres:5432/hydra?sslmode=disable&max_conns=20&max_idle_conns=4
command:
migrate sql -e --yes
restart: on-failure