-
Notifications
You must be signed in to change notification settings - Fork 5
/
compose.yaml
102 lines (95 loc) · 2.72 KB
/
compose.yaml
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
services:
hydra-migrate:
image: oryd/hydra:v2.2.0
restart: on-failure
networks:
- ory-hydra-network
command: migrate sql -e --yes
environment:
- DSN=postgres://hydra:secret@postgresd:5432/hydra?sslmode=disable&max_conns=20&max_idle_conns=4
depends_on:
- postgresd
hydra:
depends_on:
- postgresd
# - jaeger
image: oryd/hydra:v2.2.0
networks:
- ory-hydra-network
ports:
- 5004:4444 # Public port
- 5001:4445 # Admin port
command: serve all --dev
environment:
- URLS_SELF_ISSUER=http://localhost:5004/
- URLS_CONSENT=http://localhost:5002/api/consent
- URLS_LOGIN=http://localhost:5002/login
- DSN=postgres://hydra:secret@postgresd:5432/hydra?sslmode=disable&max_conns=20&max_idle_conns=4
- SECRETS_SYSTEM=youReallyNeedToChangeThis
- OIDC_SUBJECT_IDENTIFIERS_SUPPORTED_TYPES=public,pairwise
- OIDC_SUBJECT_IDENTIFIERS_PAIRWISE_SALT=youReallyNeedToChangeThis
- SERVE_PUBLIC_CORS_ENABLED=true
- SERVE_PUBLIC_CORS_ALLOWED_METHODS=POST,GET,PUT,DELETE
- SERVE_ADMIN_CORS_ENABLED=true
- SERVE_ADMIN_CORS_ALLOWED_METHODS=POST,GET,PUT,DELETE
- LOG_LEVEL=error
- LOG_FORMAT=json
- LOG_LEAK_SENSITIVE_VALUES=false
- OAUTH2_EXPOSE_INTERNAL_ERRORS=1
# - TRACING_PROVIDER=jaeger
# - TRACING_PROVIDERS_JAEGER_SAMPLING_SERVER_URL=http://jaeger:5778/sampling
# - TRACING_PROVIDERS_JAEGER_LOCAL_AGENT_ADDRESS=jaeger:6831
# - TRACING_PROVIDERS_JAEGER_SAMPLING_TYPE=const
# - TRACING_PROVIDERS_JAEGER_SAMPLING_VALUE=1
- WEBFINGER_OIDC_DISCOVERY_USERINFO_URL=http://localhost:5004/userinfo
- OIDC_DYNAMIC_CLIENT_REGISTRATION_ENABLED=true
restart: on-failure
postgresd:
image: postgres:16
networks:
- ory-hydra-network
ports:
- 5433:5432
environment:
- POSTGRES_USER=hydra
- POSTGRES_PASSWORD=secret
- POSTGRES_DB=hydra
restart: on-failure
# adminer:
# image: adminer
# networks:
# - ory-hydra-network
# ports:
# - 9000:8080
# restart: unless-stopped
# jaeger:
# image: jaegertracing/all-in-one:1.7.0
# networks:
# - ory-hydra-network
# ports:
# - 16686:16686
# restart: on-failure
vclogin:
env_file:
- ./vclogin/.env
environment:
- HYDRA_ADMIN_URL=http://hydra:4445
- REDIS_HOST=redis
- REDIS_PORT=6379
networks:
- ory-hydra-network
ports:
- 5002:3000
build:
context: ./vclogin
restart: unless-stopped
redis:
image: redis:7.2.2
networks:
- ory-hydra-network
ports:
- 6379:6379
restart: unless-stopped
networks:
ory-hydra-network:
name: ory-hydra-net