-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
72 lines (64 loc) · 1.3 KB
/
docker-compose.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
version: '3'
services:
api-gateway:
build:
context: ./api-gateway/
ports:
- '3080:3080'
volumes:
- ./api-gateway:/usr/src/app
env_file: './api-gateway/.env'
polls:
build:
context: ./services/polls/
ports:
- '3050:3050'
volumes:
- ./services/polls:/usr/src/app
env_file: './services/polls/.env'
depends_on:
- mongodb
votes:
build:
context: ./services/votes/
ports:
- '3040:3040'
volumes:
- ./services/votes:/usr/src/app
env_file: './services/votes/.env'
depends_on:
- mongodb
websockets:
build:
context: ./services/websockets/
ports:
- '3060:3060'
volumes:
- ./services/websockets:/usr/src/app
env_file: './services/websockets/.env'
auth:
build:
context: ./services/auth/
ports:
- '3030:3030'
volumes:
- ./services/auth:/usr/src/app
env_file: './services/auth/.env'
depends_on:
- mongodb
rabbitmq:
image: rabbitmq:3.12.1-management-alpine
environment:
- RABBITMQ_DEFAULT_USER=
- RABBITMQ_DEFAULT_PASS=
ports:
- '5672:5672'
- '15672:15672'
mongodb:
image: mongo:latest
ports:
- '27017:27017'
volumes:
- mongodb:/data/db
volumes:
mongodb: {}