-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
94 lines (85 loc) · 2.49 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
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
# docker stack deploy -c docker-compose.yml whisper
version: '3.5'
services:
whisper:
build: .
image: labbsr0x/whisper:latest
depends_on:
- mysqld-whisper
- hydra
ports:
- "7070:7070"
environment:
- WHISPER_PORT=7070
- WHISPER_LOG_LEVEL=debug
- WHISPER_HYDRA_ADMIN_URL=http://hydra:4445/
- WHISPER_HYDRA_PUBLIC_URL=http://hydra:4444/
- WHISPER_SECRET_KEY=uhSunsodnsuBsdjsbds
- WHISPER_DATABASE_URL=mysql://root:secret@tcp(mysqld-whisper:3306)/whisper?charset=utf8mb4&parseTime=True&loc=Local
- WHISPER_MAIL_USER=628ecbe7f53ac2
- WHISPER_MAIL_PASSWORD=457cd26e7890c5
- WHISPER_MAIL_HOST=smtp.mailtrap.io
- WHISPER_MAIL_PORT=2525
- WHISPER_PUBLIC_URL=http://localhost:7070
restart: on-failure
hydra-migrate:
image: oryd/hydra:v1.0.0-rc.11
depends_on:
- mysqld-hydra
environment:
- DSN=mysql://root:secret@tcp(mysqld-hydra:3306)/hydra?max_conns=20&max_idle_conns=4
command:
migrate sql -e --yes
restart: on-failure
hydra:
image: oryd/hydra:v1.0.0-rc.11
depends_on:
- hydra-migrate
ports:
# Public port
- "4444:4444"
# Admin port
- "4445:4445"
# Port for hydra token user
- "5555:5555"
command:
serve all --dangerous-force-http
environment:
- LOG_LEVEL=debug
- URLS_SELF_ISSUER=http://hydra:4444
- URLS_CONSENT=http://localhost:7070/consent
- URLS_LOGIN=http://localhost:7070/login
- DSN=mysql://root:secret@tcp(mysqld-hydra:3306)/hydra?max_conns=20&max_idle_conns=4
- SECRETS_SYSTEM=youReallyNeedToChangeThis
- OAUTH2_EXPOSE_INTERNAL_ERRORS=true
- OIDC_SUBJECT_IDENTIFIERS_ENABLED=public,pairwise
- OIDC_SUBJECT_IDENTIFIERS_PAIRWISE_SALT=youReallyNeedToChangeThis
- SERVE_PUBLIC_CORS_ENABLED=true
- SERVE_ADMIN_CORS_ENABLED=true
# - STRATEGIES_ACCESS_TOKEN=jwt
restart: on-failure
mysqld-hydra:
image: mysql:5.7
environment:
- MYSQL_ROOT_PASSWORD=secret
- MYSQL_DATABASE=hydra
mysqld-whisper:
image: mysql:5.7
ports:
- 3306:3306
environment:
- MYSQL_ROOT_PASSWORD=secret
- MYSQL_DATABASE=whisper
prometheus:
image: abilioesteves/prometheus:1.0.0
ports:
- 9090:9090
environment:
- SCRAPE_INTERVAL=15s
- SCRAPE_TIMEOUT=10s
- STATIC_SCRAPE_TARGETS=whisper@whisper:7070/metrics
local:
image: busybox
depends_on:
- hydra
- mysqld-whisper