-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (48 loc) · 1.03 KB
/
docker-compose.yml
File metadata and controls
52 lines (48 loc) · 1.03 KB
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
version: '3.7'
services:
client:
container_name: client
image: euphony_client
build:
context: ./
dockerfile: infra/dev/docker/client/Dockerfile
volumes:
- ./client/:/var/www/
- /var/www/node_modules
nginx:
container_name: nginx
image: euphony_nginx
restart: always
build:
context: ./
dockerfile: infra/dev/docker/nginx/Dockerfile
volumes:
- ./client/:/var/www/
- ./service/:/usr/src/service
- ./infra/dev/docker/nginx/conf.d/:/etc/nginx/conf.d/
ports:
- 80:80
- 443:443
depends_on:
- service
service:
container_name: service
image: euphony_service
build:
context: ./
dockerfile: infra/dev/docker/service/Dockerfile
volumes:
- ./service/:/usr/src/service
- /usr/src/service/node_modules
env_file:
- ./service/.env
depends_on:
- db
db:
container_name: db
image: mongo:4.2
restart: always
volumes:
- ./service/data/db:/data/db
ports:
- 27017:27017