This repository has been archived by the owner on Feb 4, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
123 lines (114 loc) · 2.66 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
version: "3"
services:
accounts:
image: programminglab/prolab-accounts:latest
restart: always
volumes:
- ./sqlboiler.toml:/sqlboiler.toml
env_file:
- ./.env
depends_on:
- pg
- redis
- hydra
- mailhog
ports:
- "127.0.0.1:3000:3000"
ridgepole:
build: ./db
volumes:
- ./db:/db
environment:
- DATABASE_URL=${DATABASE_URL_RIDGEPOLE}
- TEST_DATABASE_URL=${TEST_DATABASE_URL_RIDGEPOLE}
hydra-migrate:
image: oryd/hydra:v1.0.3
depends_on:
- pg
environment:
# - LOG_LEVEL=debug
- DATABASE_URL=${DATABASE_URL_HYDRA}
command:
migrate sql -e
restart: on-failure
hydra:
image: oryd/hydra:v1.0.3
depends_on:
- hydra-migrate
ports:
# Public port
- "127.0.0.1:4444:4444"
# Admin port
- "127.0.0.1:4445:4445"
# Port for hydra token user
- "127.0.0.1:5555:5555"
command:
serve all --dangerous-force-http
environment:
# - LOG_LEVEL=debug
- OAUTH2_ISSUER_URL=${OAUTH2_ISSUER_URL}
- OAUTH2_CONSENT_URL=${OAUTH2_CONSENT_URL}
- OAUTH2_LOGIN_URL=${OAUTH2_LOGIN_URL}
- DATABASE_URL=${DATABASE_URL_HYDRA}
- SYSTEM_SECRET=${HYDRA_SECRET}
- OAUTH2_SHARE_ERROR_DEBUG=1
- OIDC_SUBJECT_TYPES_SUPPORTED=public,pairwise
- OIDC_SUBJECT_TYPE_PAIRWISE_SALT=${HYDRA_SALT}
- CORS_ENABLED=true
- CORS_ALLOWED_ORIGINS=${CORS_ALLOWED_ORIGINS}
restart: unless-stopped
pg:
image: postgres:11-alpine
hostname: pg
environment:
- POSTGRES_DB="accounts"
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_HOST_AUTH_METHOD=${POSTGRES_HOST_AUTH_METHOD}
restart: always
volumes:
- pg-data:/var/lib/postgresql/data
logging:
options:
max-size: 5m
max-file: "10"
ports:
- "127.0.0.1:5432:5432"
redis:
image: redis:4.0.11-alpine
hostname: redis
restart: always
logging:
options:
max-size: 5m
max-file: "10"
ports:
- "127.0.0.1:6379:6379"
minio:
image: minio/minio
command: server /data
hostname: minio
environment:
- MINIO_ACCESS_KEY=${MINIO_ACCESS_KEY}
- MINIO_SECRET_KEY=${MINIO_SECRET_KEY}
- MINIO_BROWSER=${MINIO_BROWSER}
restart: always
volumes:
- minio-data:/data
logging:
options:
max-size: 5m
max-file: "10"
ports:
- "127.0.0.1:9100:9000"
mailhog:
image: mailhog/mailhog
hostname: smtp
restart: always
ports:
- "127.0.0.1:1025:1025"
- "127.0.0.1:8025:8025"
volumes:
pg-data:
driver: local
minio-data:
driver: local