-
Notifications
You must be signed in to change notification settings - Fork 2
/
compose.prod.yml
65 lines (60 loc) · 1.22 KB
/
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
version: '3.1'
services:
auth:
image: quasimodo147/auth-svc:latest
environment:
JWT_SECRET: 'YOUR_SECRET'
JWT_REFRESH_SECRET: 'YOUR_REFRESH_SECRET'
RABBIT_URI: 'amqp://some-rabbit'
PORT: 4000
MONGO_URI: mongodb://mongo-auth/auth
restart: unless-stopped
ports:
- 4000
links:
- mongo-auth
- some-rabbit
mongo-auth:
image: mongo:latest
ports:
- 27017
expiration:
image: quasimodo147/expiration-svc:latest
environment:
REDIS_HOST: some-redis
RABBIT_URL: amqp://some-rabbit
depends_on:
- some-redis
- some-rabbit
restart: unless-stopped
client:
image: quasimodo147/client-nextjs:latest
ports:
- 3000
links:
- auth
environment:
GATEWAY_URL: http://nginx:80
nginx:
image: nginx
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
ports:
- 80:80
- 443:443
links:
- auth
- client
some-rabbit:
image: rabbitmq:3-management
healthcheck:
test: [ "CMD", "rabbitmq-diagnostics", "ping" ]
interval: 30s
timeout: 10s
ports:
- 15672:15672
- 5672
some-redis:
image: redis
ports:
- 6379