Update: Cpu && Memory quota
This commit is contained in:
parent
c79fbabf1c
commit
6bb49e6a74
@ -1,8 +1,12 @@
|
|||||||
version: '3'
|
version: '2.4'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
db:
|
db:
|
||||||
image: mariadb
|
image: mariadb
|
||||||
|
mem_limit: 100m
|
||||||
|
cpus: 0.1
|
||||||
|
cpu_percent: 20
|
||||||
|
mem_reservation: 100m
|
||||||
restart: always
|
restart: always
|
||||||
user: ${USER_GROUP}
|
user: ${USER_GROUP}
|
||||||
volumes:
|
volumes:
|
||||||
@ -15,6 +19,10 @@ services:
|
|||||||
|
|
||||||
wordpress:
|
wordpress:
|
||||||
build: .
|
build: .
|
||||||
|
mem_limit: 200m
|
||||||
|
cpus: 0.1
|
||||||
|
cpu_percent: 20
|
||||||
|
mem_reservation: 100m
|
||||||
user: ${USER_GROUP}
|
user: ${USER_GROUP}
|
||||||
volumes:
|
volumes:
|
||||||
- ./data:/app
|
- ./data:/app
|
||||||
|
Loading…
Reference in New Issue
Block a user