-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
63 lines (63 loc) · 1.13 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
57
58
59
60
61
62
63
version: '3'
networks:
bcloud-net:
external: true
services:
db:
container_name: db_1
image: mongo:4.4
ports:
- "27015:27017"
volumes:
- mongo-data:/data/db
networks:
- bcloud-net
app1:
image: server_app
container_name: app_1
build: .
ports:
- "3001:3001"
environment:
- DB_INIT=false
- SERVER_PORT=3001
- MONGO_URI=mongodb://db:27017
depends_on:
- db
volumes:
- store-vol:/app/store
networks:
- bcloud-net
# app2:
# image: server_app
# container_name: app_2
# build: .
# ports:
# - "3002:3002"
# environment:
# - DB_INIT=false
# - SERVER_PORT=3002
# - MONGO_URI=mongodb://db:27017
# depends_on:
# - db
# volumes:
# - store-vol:/app/store
# networks:
# - bcloud-net
nginx:
build:
context: .
dockerfile: Dockerfile.nginx
ports:
- "3000:3000"
networks:
- bcloud-net
depends_on:
- app1
# - app2
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
volumes:
mongo-data:
store-vol:
external: true