-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose-staging.yaml
113 lines (102 loc) · 2.75 KB
/
docker-compose-staging.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
version: '3.4'
volumes:
mongodb-store:
name: mongodb-store-staging
services:
mongodb: # Consider switching to MongoDB Atlas for production
image: mongo
volumes:
- mongodb-store:/data/db
expose:
- "27017"
reverse-proxy:
image: nginx
ports:
- "80:80"
- "443:443"
links:
- api-gateway:api-upstream
- web-client:web-upstream
depends_on:
- api-gateway
volumes:
- ~/.certs/:/etc/nginx/certs/
- ./services/reverse-proxy/default-ssl.conf:/etc/nginx/conf.d/default.conf
web-client:
image: ghcr.io/project-persona/web-client
expose:
- "3000"
api-gateway:
image: ghcr.io/project-persona/infra-executables
depends_on:
- service-broker
environment:
PORT: "80"
HOST: "0.0.0.0"
BROKER_ADDR: "tcp://service-broker:5555"
NODE_ENV: 'development'
expose:
- "80"
command: "start-gateway"
service-broker:
image: ghcr.io/project-persona/infra-executables
environment:
BROKER_ADDR: "tcp://0.0.0.0:5555"
expose:
- "5555"
command: "start-broker"
microservice-personas:
image: ghcr.io/project-persona/microservice-personas
environment:
BROKER_ADDR: "tcp://service-broker:5555"
MONGO_CONNECTION_STRING: "mongodb://mongodb:27017"
volumes:
- ~/service-account-file.json:/service-account-file.json
depends_on:
- service-broker
- mongodb
microservice-passwords:
image: ghcr.io/project-persona/microservice-passwords
environment:
BROKER_ADDR: "tcp://service-broker:5555"
MONGO_CONNECTION_STRING: "mongodb://mongodb:27017"
volumes:
- ~/service-account-file.json:/service-account-file.json
depends_on:
- service-broker
- mongodb
microservice-notes:
image: ghcr.io/project-persona/microservice-notes
environment:
BROKER_ADDR: "tcp://service-broker:5555"
MONGO_CONNECTION_STRING: "mongodb://mongodb:27017"
volumes:
- ~/service-account-file.json:/service-account-file.json
depends_on:
- service-broker
- mongodb
microservice-emails:
image: ghcr.io/project-persona/microservice-emails
environment:
BROKER_ADDR: "tcp://service-broker:5555"
MONGO_CONNECTION_STRING: "mongodb://mongodb:27017"
volumes:
- ~/service-account-file.json:/service-account-file.json
depends_on:
- service-broker
- mongodb
smtp-server:
image: ghcr.io/project-persona/smtp-server
environment:
BROKER_ADDR: "tcp://service-broker:5555"
TLS_CERT: "/certs/certificate.crt"
TLS_KEY: "/certs/private.key"
volumes:
- ~/.certs/:/certs/
expose:
- "25"
ports:
- "25:25"
depends_on:
- service-broker
- microservice-emails