-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
54 lines (46 loc) · 974 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
44
45
46
47
48
49
50
51
52
53
54
version: "3.9"
services:
flask_app:
container_name: flask_app
image: python:3.9
build: .
volumes:
- .:/app
ports:
- "4000:4000"
environment:
- MONGO_URI=mongodb://mongo_db:27017/mydatabase
- FLASK_PORT=4000
depends_on:
- mongo_db
# flask_app2:
# container_name: flask_app2
# image: python:3.9
# build: .
# volumes:
# - .:/app
# ports:
# - "4001:4001"
# environment:
# - MONGO_URI=mongodb://mongo_db:27017/mydatabase
# - FLASK_PORT=4001
# depends_on:
# - mongo_db
mongo_db:
container_name: mongo_db
image: mongo:latest
ports:
- "27017:27017"
redis:
image: redis
ports:
- "6379:6379"
# nginx:
# image: nginx:latest
# volumes:
# - ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
# ports:
# - "80:80"
# depends_on:
# - flask_app
# - flask_app2