-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
74 lines (67 loc) · 1.32 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.7"
services:
rabbitmq:
image: rabbitmq:3.8.3
restart: always
environment:
RABBITMQ_DEFAULT_USER: root
RABBITMQ_DEFAULT_PASS: example
mongodb:
image: mongo:4.2.3
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
api:
build:
context: .
dockerfile: ./api/Dockerfile
ports:
- "8080:8080"
volumes:
- "./api/:/usr/app/"
- "./utils/:/usr/app/utils/"
- "./upload/:/usr/app/upload/"
depends_on:
- rabbitmq
- mongodb
env_file:
- .env
core:
build:
context: .
dockerfile: ./core/Dockerfile
ports:
- "8081:8081"
volumes:
- "./core/:/usr/app/"
- "./utils/:/usr/app/utils/"
- "./upload/:/usr/app/upload/"
depends_on:
- rabbitmq
env_file:
- .env
web:
build:
context: .
dockerfile: ./web/Dockerfile
target: 'develop-stage'
ports:
- "8082:8080"
volumes:
- "./web/:/usr/app/"
- /usr/app/node_modules/
command: "yarn run serve"
depends_on:
- api
env_file:
- .env
nginx:
image: nginx:1.17.10
ports:
- 80:80
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- ./upload:/upload
depends_on:
- api