-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
50 lines (46 loc) · 1.05 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
version: '3.8'
services:
clean-arch-node-api:
build:
context: .
dockerfile: Dockerfile.node
container_name: clean-arch-node-api
depends_on:
- clean-arch-node-api-mongodb
entrypoint: sh -c 'yarn install --frozen-lockfile && yarn start:debug'
env_file:
- ${PATH_ENVIRONMENT}
ports:
- ${PORT}:${PORT}
- ${PORT_DEBUG}:${PORT_DEBUG}
networks:
- clean-arch-net
volumes:
- '/app/node_modules'
- './:/app'
clean-arch-node-api-mongodb:
image: mongo:latest
container_name: clean-arch-node-api-mongodb
ports:
- ${MONGODB_PORT}:${MONGODB_PORT}
networks:
- clean-arch-net
volumes:
- /mongodb-volume:/data/db
clean-arch-node-api-nginx:
build:
context: .
dockerfile: Dockerfile.nginx
container_name: clean-arch-node-api-nginx
ports:
- ${NGINX_PORT}:${NGINX_PORT}
expose:
- ${NGINX_PORT}
networks:
- clean-arch-net
links:
- clean-arch-node-api
networks:
clean-arch-net:
volumes:
mongodb-volume: