-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (38 loc) · 889 Bytes
/
docker-compose.yml
File metadata and controls
42 lines (38 loc) · 889 Bytes
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
version: "3"
volumes:
mongo_data:
services:
main:
build: .
volumes:
- ./:/usr/src/app
working_dir: /usr/src/app
command: sh -c 'npm install; npm install bcrypt; npm run start:dev'
container_name: main
ports:
- "3000:3000"
depends_on:
- mongo
links:
- mongo
networks:
- all
env_file:
- .env
environment:
SERVICE_NAME: ${SERVICE_NAME}
DATABASE_URL: ${DATABASE_URL}
SERVICE_PORT: ${SERVICE_PORT}
mongo:
image: mongo:3
container_name: mongo
command: mongod --smallfiles --bind_ip_all
volumes:
- mongo_data:/data/db
restart: always
ports:
- "27017:27017"
networks:
- all
networks:
all: