File tree Expand file tree Collapse file tree 1 file changed +26
-11
lines changed Expand file tree Collapse file tree 1 file changed +26
-11
lines changed Original file line number Diff line number Diff line change @@ -3,39 +3,54 @@ services:
3
3
web :
4
4
build :
5
5
context : web
6
- ports :
7
- - " 8000:80"
6
+ deploy :
7
+ resources :
8
+ limits :
9
+ cpus : " 1.0"
10
+ memory : 1024M
8
11
environment :
9
12
API_URL : http://api:80
10
13
ENVIRONMENT : dev
11
14
FLASK_DEBUG : 1
12
15
SECRET_KEY : " 0cX78ltAhxMlwTDAQQYdlXvapcJMWA=="
13
- volumes :
14
- - ./web/app:/code/app
15
16
links :
16
17
- api
18
+ ports :
19
+ - " 8000:80"
20
+ volumes :
21
+ - ./web/app:/code/app
17
22
api :
18
23
build :
19
24
context : api
20
- ports :
21
- - " 5000:80"
25
+ deploy :
26
+ resources :
27
+ limits :
28
+ cpus : " 2.0"
29
+ memory : " 2048M"
22
30
environment :
23
31
ENVIRONMENT : dev
24
32
POSTGRES_DB : example
25
33
POSTGRES_PASSWORD : postgres
26
34
POSTGRES_USER : postgres
27
35
WEB_URL : web:8000
28
- volumes :
29
- - ./api/app:/code/app
30
36
links :
31
37
- db
32
- db :
33
- image : postgres:15
34
38
ports :
35
- - " 5432:5432"
39
+ - " 5000:80"
40
+ volumes :
41
+ - ./api/app:/code/app
42
+ db :
43
+ deploy :
44
+ resources :
45
+ limits :
46
+ cpus : " 2.0"
47
+ memory : " 2048M"
36
48
environment :
37
49
POSTGRES_DB : example
38
50
POSTGRES_PASSWORD : postgres
39
51
POSTGRES_USER : postgres
52
+ image : postgres:15
53
+ ports :
54
+ - " 5432:5432"
40
55
volumes :
41
56
- ./db:/var/lib/postgresql/data
You can’t perform that action at this time.
0 commit comments