-
Notifications
You must be signed in to change notification settings - Fork 0
/
stack.yml
65 lines (63 loc) · 1.28 KB
/
stack.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.2"
services:
redis:
image: redis
networks:
- auth
rebbitmq:
image: rabbitmq:3.9-management
networks:
- auth
ports:
- "15672:15672"
db:
image: postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD_FILE: /run/secrets/postgres_pass
POSTGRES_DB: reddit2
secrets:
- postgres_pass
networks:
- auth
deploy:
replicas: 1
auth-service:
image: micro-auth:1
environment:
DATABASE_PASS_FILE: /run/secrets/postgres_pass
RABBITMQ_CONNECTION: amqp://rebbitmq:5672
REDISS_CONNECTION: redis:6379
networks:
- auth
secrets:
- postgres_pass
gateway-service:
image: micro-gateway:1
environment:
CORS_CLIENT_HOST: client-web:3000
RABBITMQ_CONNECTION: amqp://rebbitmq:5672
networks:
- auth
- web
mail-service:
image: micro-mailer:1
environment:
CORS_CLIENT_HOST: client-web:3000
RABBITMQ_CONNECTION: amqp://rebbitmq:5672
CHANGE_PASSWORD_URL: client-web:3000/forget_password
networks:
- auth
client-web:
image: client-web:1
networks: -web
ports:
- "3000:3000"
networks:
auth:
driver: overlay
web:
driver: overlay
secrets:
postgres_pass:
external: true