-
Notifications
You must be signed in to change notification settings - Fork 15
/
docker-compose.prod.yml
122 lines (114 loc) · 2.56 KB
/
docker-compose.prod.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
version: '3.8'
services:
guardian:
image: 'ub-boilerplate/guardian:${IMAGE_TAG:?err}'
network_mode: bridge
build:
context: .
args:
APP_NAME: guardian
PORT: 5000
dockerfile: .deploy/base.Dockerfile
links:
- redis
ports:
- '5000:5000'
container_name: guardian-svc
depends_on:
- postgresd
- kratos
- kratos-migrate
- redis
- zipkin
tenant:
image: 'ub-boilerplate/tenant:${IMAGE_TAG:?err}'
network_mode: bridge
build:
context: .
args:
APP_NAME: tenant
PORT: 5001
dockerfile: .deploy/base.Dockerfile
ports:
- '5001:5001'
container_name: tenant-svc
links:
- redis
depends_on:
- postgresd
- kratos
- kratos-migrate
- redis
- zipkin
billing:
image: 'ub-boilerplate/billing:${IMAGE_TAG:?err}'
network_mode: bridge
build:
context: .
args:
APP_NAME: billing
PORT: 5002
dockerfile: .deploy/base.Dockerfile
links:
- redis
ports:
- '5002:5002'
container_name: billing-svc
depends_on:
- postgresd
- kratos
- kratos-migrate
- redis
- zipkin
kratos-migrate:
container_name: kratos-migrate
image: oryd/kratos:v0.7.0-alpha.1
command: migrate -c /etc/config/kratos/kratos.yml sql -e --yes
volumes:
- type: bind
source: ./.deploy/ory/config
target: /etc/config/kratos
environment:
- DSN=postgres://kratos:secret@postgresd:5432/kratos?sslmode=disable&max_conns=20&max_idle_conns=4
depends_on:
- postgresd
kratos:
image: oryd/kratos:v0.7.0-alpha.1
container_name: kratos
ports:
- '4433:4433'
- '4434:4434'
command: serve --config /etc/config/kratos/kratos.yml all
volumes:
- type: bind
source: ./.deploy/ory/config
target: /etc/config/kratos
environment:
- DSN=postgres://kratos:secret@postgresd:5432/kratos?sslmode=disable&max_conns=20&max_idle_conns=4
depends_on:
- kratos-migrate
- postgresd
- zipkin
links:
- zipkin
zipkin:
container_name: zipkin
network_mode: bridge
ports:
- '9411:9411'
image: openzipkin/zipkin
postgresd:
container_name: postgresd
image: postgres:9.6
ports:
- '5432:5432'
environment:
- POSTGRES_USER=kratos
- POSTGRES_PASSWORD=secret
- POSTGRES_DB=kratos
redis:
container_name: redis
network_mode: bridge
image: redis:latest
ports:
- '6379:6379'