-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
55 lines (50 loc) · 1.12 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
# version: '3.7'
# services:
# nginx:
# build: ./nginx
# #image: nginx:1.21.5-alpine
# ports:
# - 80:80
# volumes:
# - ./nginx/nginx.conf:/etc/nginx/nginx.conf
# container_name: midubang-nginx
# depends_on:
# # - web
# - flask
# # web:
# # image: frontend-web:latest
# # ports:
# # - 3000:3000
# # container_name: myweb-web
# flask:
# build: ./flask
# # image: backend-api:latest
# # ports:
# # - 5000:5000
# expose:
# - 5000
# container_name: midubang-flask
version: "3.7"
services:
flask:
build: ./flask
container_name: midubang-flask
restart: always
deploy:
resources:
limits:
cpus: '0.50'
memory: 50M
reservations:
cpus: '0.25'
memory: 20M
environment:
- APP_NAME=FLASKSERVER
expose:
- 5050
nginx:
build: ./nginx
container_name: midubang-nginx
restart: always
ports:
- "80:80"