Skip to content

Commit

Permalink
root: Added Minimum Memory and CPU Reservation
Browse files Browse the repository at this point in the history
Signed-off-by: Kaindl Network <82705244+kaindlnetwork@users.noreply.github.com>
  • Loading branch information
kaindlnetwork authored Dec 10, 2024
1 parent 83edb0d commit 7981218
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ services:
POSTGRES_DB: ${PG_DB:-authentik}
env_file:
- .env
deploy:
resources:
reservations:
cpus: '0.0001'
memory: 150M
redis:
image: docker.io/library/redis:alpine
command: --save 60 1 --loglevel warning
Expand All @@ -30,6 +35,12 @@ services:
timeout: 3s
volumes:
- redis:/data
deploy:
resources:
reservations:
cpus: '0.0001'
memory: 20M

server:
image: ${AUTHENTIK_IMAGE:-ghcr.io/goauthentik/server}:${AUTHENTIK_TAG:-2024.10.4}
restart: unless-stopped
Expand All @@ -53,6 +64,11 @@ services:
condition: service_healthy
redis:
condition: service_healthy
deploy:
resources:
reservations:
cpus: '0.0001'
memory: 400M
worker:
image: ${AUTHENTIK_IMAGE:-ghcr.io/goauthentik/server}:${AUTHENTIK_TAG:-2024.10.4}
restart: unless-stopped
Expand Down Expand Up @@ -82,7 +98,11 @@ services:
condition: service_healthy
redis:
condition: service_healthy

deploy:
resources:
reservations:
cpus: '0.0001'
memory: 400M
volumes:
database:
driver: local
Expand Down

0 comments on commit 7981218

Please sign in to comment.