-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
71 lines (68 loc) · 1.24 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
version: "3"
services:
api:
depends_on:
- mongo
- broker
container_name: api
build: ./smart-sheet-service
command: yarn run start
ports:
- "3006:3006"
environment:
- DATABASE_URL=mongodb://mongo/smart-sheet
- PORT=3006
networks:
- smartsheet-network
pubsub:
depends_on:
- broker
- api
container_name: pubsub
build: ./smart-sheet-pubsub
command: yarn run start
networks:
- smartsheet-network
broker:
image: eclipse-mosquitto:1.6.13
ports:
- 1883:1883
- 8883:8883
networks:
- smartsheet-network
mongo:
container_name: db_code
image: mongo:latest
volumes:
- mongodata:/data/db
ports:
- 27018:27017
networks:
- smartsheet-network
front:
depends_on:
- api
container_name: front
build: ./smart-sheet-app
command: yarn run start
ports:
- "3000:3000"
networks:
- smartsheet-network
nginx:
depends_on:
- api
- front
restart: always
build:
dockerfile: Dockerfile
context: ./nginx
ports:
- "80:80"
networks:
- smartsheet-network
volumes:
mongodata:
networks:
smartsheet-network:
driver: bridge