forked from workfromcafe/meraki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
56 lines (51 loc) · 1.12 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
version: "3"
services:
mongo:
container_name: meraki-db-mongo
image: ${MONGO_IMAGE}
restart: always
ports:
- "27017:27017"
# environment:
# MONGO_INITDB_ROOT_USERNAME: ${MONGO_INITDB_ROOT_USERNAME}
# MONGO_INITDB_ROOT_PASSWORD: ${MONGO_INITDB_ROOT_PASSWORD}
volumes:
- mongodb:/data/db
- mongodb_config:/dataconfigdb
networks:
- meraki-netrwork
app:
container_name: meraki-app
image: workfromcafe/meraki-app
build:
context: .
dockerfile: docker/Dockerfile
target: ${NODE_ENV}
# args:
# - NODE_ENV=${NODE_ENV}
env_file:
- .env
# environment:
# - NODE_ENV=${NODE_ENV}
# - SERVER_PORT=${SERVER_PORT}
# - MONGODB_URL=${MONGO_DB_URL}
ports:
- 3000:${SERVER_PORT}
- 9229:9229
links:
- mongo
restart: always
volumes:
- .:/node/app:delegated
- /node/app/node_modules
# command: npm run start:dev
networks:
- meraki-netrwork
volumes:
mongodb:
mongodb_config:
networks:
meraki-netrwork:
driver: bridge
ipam:
driver: default