Skip to content

Commit

Permalink
Update docker-compose.yml
Browse files Browse the repository at this point in the history
includes resource limit
  • Loading branch information
Kipjr authored Nov 21, 2024
1 parent 3afeea9 commit 555037a
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ services:
- "traefik.http.routers.${PROJECT}.entrypoints=${PROJECT_ENTRYPOINT}"
container_name: project.php
hostname: php
resources:
limits:
cpus: '0.05'
memory: 128M
reservations:
cpus: '0.05'
memory: 64M
secrets:
- SECRET1
pull_policy: if_not_present
Expand Down Expand Up @@ -61,6 +68,13 @@ services:
image: 'mariadb:10'
container_name: project.db
hostname: db
resources:
limits:
cpus: '0.05'
memory: 512M
reservations:
cpus: '0.05'
memory: 64M
restart: always
ports:
- 3306:3306
Expand All @@ -84,6 +98,13 @@ services:
image: ghcr.io/linuxserver/phpmyadmin
profiles:
- dev
resources:
limits:
cpus: '0.05'
memory: 512M
reservations:
cpus: '0.05'
memory: 32M
environment:
PMA_HOST: '${MYSQL_HOST:-db}'
PMA_USER: root
Expand Down

0 comments on commit 555037a

Please sign in to comment.