-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathdocker-compose.yml
43 lines (41 loc) · 976 Bytes
/
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
version: "3"
services:
nodejs:
build: .
# links:
# - db
container_name: falcon-nodejs
restart: unless-stopped
env_file: .env
environment:
# - MONGO_URI=$MONGO_URI
- PORT=$PORT
ports:
- "2020:2020"
# volumes:
# - .:/home/node/app
# - node_modules:/home/node/app/node_modules
# networks:
# - app-network
# command: ./wait-for.sh falcon-db:5517 -- /home/node/app/node_modules/.bin/nodemon index.js
# db:
# image: mongo:4.1.8-xenial
# command: mongod --port 5515
# container_name: falcon-db
# restart: unless-stopped
# env_file: .env
# environment:
# - MONGO_INITDB_ROOT_USERNAME=$MONGO_USERNAME
# - MONGO_INITDB_ROOT_PASSWORD=$MONGO_PASSWORD
# volumes:
# - dbdata:/data/db
# ports:
# - "5515:27017"
# networks:
# - app-network
# networks:
# app-network:
# driver: bridge
volumes:
# dbdata:
node_modules: