forked from labbsr0x/whisper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
88 lines (79 loc) · 2.24 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
# 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
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
- OAUTH2_ISSUER_URL=http://localhost:4444
- OAUTH2_CONSENT_URL=http://localhost:7070/consent
- OAUTH2_LOGIN_URL=http://localhost:7070/login
- DSN=mysql://root:secret@tcp(mysqld-hydra:3306)/hydra?max_conns=20&max_idle_conns=4
- SYSTEM_SECRET=youReallyNeedToChangeThis
- OAUTH2_SHARE_ERROR_DEBUG=1
- OIDC_SUBJECT_TYPES_SUPPORTED=public,pairwise
- OIDC_SUBJECT_TYPE_PAIRWISE_SALT=youReallyNeedToChangeThis
- CORS_ENABLED=true
# - OAUTH2_ACCESS_TOKEN_STRATEGY=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