-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
56 lines (49 loc) · 1.04 KB
/
docker-compose.yaml
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
version: "3"
services:
mongo:
build:
context: ./
dockerfile: ./deploy/mongo/Dockerfile
ports:
- "27017:27017"
# volumes:
# - /data.tf/db:/data.tf/db
# - F:/test-db-output:/data.tf/db
# - ./deploy/mongo/mongo.init.js:/docker-entrypoint-initdb.d/mongo.init.js
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=1111
- MONGO_INITDB_DATABASE=users
restart: always
networks:
- app-network
node:
build:
context: ./
dockerfile: ./deploy/node/Dockerfile
ports:
- "3000:3000"
restart: always
depends_on:
- mongo
networks:
- app-network
nginx:
build:
context: ./
dockerfile: ./deploy/nginx/Dockerfile
target: development
ports:
- "80:80"
- "443:443"
volumes:
# - /etc/nginx/ssl:/ssl
- C:/Users/Vitaliy/ssl/:/ssl
restart: unless-stopped
depends_on:
- node
networks:
- app-network
networks:
app-network:
external: true