/
docker-compose.yaml
117 lines (109 loc) · 3.29 KB
/
docker-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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
version: "3.7"
networks:
monzo:
driver: bridge
services:
db:
image: reecerussell/mpp-db
build: ./service.mysql
restart: always
networks:
- monzo
plugin.budget:
image: reecerussell/mpp-plugin-budget
build:
context: .
dockerfile: service.plugin.budget/Dockerfile
environment:
- "CONN_STRING=monzo:m0nz0-Pl5s-pluS@tcp(db)/monzo_plus_plus?parseTime=true"
- "HTTP_PORT=80"
- "RPC_PORT=8080"
- "NAME=budget"
- "HOSTNAME=plugin.budget"
- "REGISTRY_HOST=registry:8080"
- "AUTH_RPC_ADDRESS=auth:8080"
networks:
- monzo
depends_on:
- db
- registry
registry:
image: reecerussell/mpp-registry
build:
context: .
dockerfile: service.registry/Dockerfile
environment:
- "RPC_PORT=8080"
networks:
- monzo
job_queue:
image: reecerussell/mpp-job-queue
build:
context: .
dockerfile: service.job_queue/Dockerfile
environment:
- "HTTP_PORT=80"
- "RPC_PORT=8080"
- "CONN_STRING=monzo:m0nz0-Pl5s-pluS@tcp(db)/monzo_plus_plus?parseTime=true"
- "REGISTRY_HOST=registry:8080"
- "AUTH_RPC_HOST=auth:8080"
- "WORKER_LIMIT=3"
networks:
- monzo
depends_on:
- db
- registry
auth:
image: reecerussell/mpp-auth
build:
context: .
dockerfile: service.auth/Dockerfile
environment:
- "MONZO_WEBHOOK_URL=https://mpp.reece-russell.co.uk/api/monzo/hook"
- "MONZO_CLIENT_ID="
- "MONZO_CLIENT_SECRET="
- "OAUTH_CALLBACK_URL=https://mpp.reece-russell.co.uk/api/auth/monzo/callback"
- "SUCCESS_CALLBACK_URL=https://mpp.reece-russell.co.uk/#login"
- "CONN_STRING=monzo:m0nz0-Pl5s-pluS@tcp(db)/monzo_plus_plus?parseTime=true"
- "HTTP_PORT=80"
- "RPC_PORT=8080"
restart: unless-stopped
networks:
- monzo
depends_on:
- db
plugins:
image: reecerussell/mpp-plugins
build:
context: .
dockerfile: service.plugins/Dockerfile
environment:
- "CONN_STRING=monzo:m0nz0-Pl5s-pluS@tcp(db)/monzo_plus_plus?parseTime=true"
- "HTTP_PORT=80"
- "HTTP_ERROR=DEBUG"
- "AUTH_RPC_ADDRESS=auth:8080"
networks:
- monzo
depends_on:
- db
mpp:
image: reecerussell/mpp-entrypoint
build:
context: .
dockerfile: service.mpp/Dockerfile
restart: unless-stopped
ports:
- "80:80"
- "443:80"
environment:
- "CONN_STRING=monzo:m0nz0-Pl5s-pluS@tcp(db)/monzo_plus_plus?parseTime=true"
- "HTTPS_PORT=443"
- "AUTH_HTTP_HOST=http://auth:80"
- "PLUGINS_HTTP_HOST=http://plugins:80"
- "JOBS_HOST=job_queue:8080"
- "REGISTRY_HOST=registry:8080"
networks:
- monzo
depends_on:
- registry
- db