-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
47 lines (46 loc) · 1 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
version: "3"
services:
mongo:
image: mongo:4.4
# build: ./
restart: always
expose:
- "27017"
- "27018"
volumes:
- ./data/db:/data/db
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=example
networks:
- beta
api:
# image: node:14-buster
build: ./
restart: always
user: "node"
working_dir: /home/node/app
volumes:
- ./:/home/node/app
depends_on:
- "mongo"
# ports:
# - 8080:8080
expose:
- "8080"
command: "npm start"
environment:
#- MONGO_CONNECTION=mongodb://mongo:27017
- MONGO_CONNECTION=mongodb://root:example@mongo:27017/moncon?authSource=admin
- VIRTUAL_HOST=app.api.moncon.co
- VIRTUAL_PORT=8080
- LETSENCRYPT_HOST=app.api.moncon.co
networks:
- nginx_proxy
- beta
networks:
nginx_proxy:
external: true
beta:
external: false