build: harden compose example

Signed-off-by: rare-magma <rare-magma@posteo.eu>
This commit is contained in:
rare-magma 2024-07-07 19:41:52 +02:00 committed by Pierre Dubouilh
parent 83038f6de2
commit c0d7616101

View file

@ -2,9 +2,28 @@ version: '2'
services:
gossa-server:
image: pldubouilh/gossa
image: docker.io/pldubouilh/gossa:latest
container_name: gossa
restart: always
read_only: true
# uncomment to set the user
# user: "1000:1000"
# environment:
#- READONLY=true # uncomment to set gossa as read only
#- UID=1000 # this should match the user set above
#- GID=1000 # this should match the user's group
cap_drop:
- ALL
cap_add:
- SETGID
- SETUID
# uncomment to set resource usage limits
# deploy:
# resources:
# limits:
# cpus: "2"
# memory: 250m
# pids: 1024
ports:
- 8001:8001
volumes: