-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (45 loc) · 1.07 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
version: '3'
networks:
d_network:
driver: bridge
services:
nginx:
container_name: nginx
hostname: nginx
image: nginx
ports:
- ${NGINX_PORT:-80}:80
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
- ./api/storage:/usr/share/nginx/storage
restart: always
networks:
- d_network
mongo:
container_name: mongo
hostname: mongo
image: mongo
ports:
- ${MONGO_PORT:-27017}:27017
restart: always
networks:
- d_network
api:
container_name: api
hostname: api
build:
context: ./api
privileged: true
environment:
- BUILD_ENV=${BUILD_ENV:-development}
ports:
- 3000:3000
restart: always
volumes:
- ./api/storage:/app/storage
networks:
- d_network
depends_on:
- nginx
- mongo