Skip to content

Commit 7135119

Browse files
committed
* adapt config
1 parent d37fea1 commit 7135119

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

service/docker-compose.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1-
## PLEASE ALSO FORWARD PORT 2626 TO MAKE THE FRONTEND WORK ##
2-
## LocalForward 2627 127.0.0.1:2627
3-
## LocalForward 2626 127.0.0.1:2626
41
services:
52
seedgen:
63
build: ./seed
74
platform: linux/amd64
85
restart: unless-stopped
9-
mem_limit: 1g
10-
cpus: 1
6+
mem_limit: 128m
7+
cpus: 0.3
118
ports:
129
- "2628:2628"
1310
backend:
@@ -20,8 +17,8 @@ services:
2017
backend-db:
2118
condition: service_healthy
2219
restart: unless-stopped
23-
mem_limit: 1g
24-
cpus: 2
20+
mem_limit: 800m
21+
cpus: 1
2522
volumes:
2623
- ./backend/uploads:/app/uploads
2724
frontend:
@@ -30,13 +27,15 @@ services:
3027
ports:
3128
- "2627:5173"
3229
restart: unless-stopped
33-
mem_limit: 1g
34-
cpus: 1
30+
mem_limit: 128m
31+
cpus: 0.1
3532
env_file:
3633
- ./frontend/.env
3734
backend-db:
3835
image: postgres:15-alpine
3936
restart: unless-stopped
37+
mem_limit: 700m
38+
cpus: 0.4
4039
environment:
4140
POSTGRES_USER: backend
4241
POSTGRES_PASSWORD: backend
@@ -60,7 +59,8 @@ services:
6059
depends_on:
6160
- backend-db
6261
restart: unless-stopped
63-
62+
mem_limit: 64m
63+
cpus: 0.1
6464

6565
volumes:
6666
db-data:

0 commit comments

Comments
 (0)