mirror of
https://github.com/pldubouilh/gossa
synced 2025-12-06 08:22:32 +01:00
build: harden compose example
Signed-off-by: rare-magma <rare-magma@posteo.eu>
This commit is contained in:
parent
83038f6de2
commit
c0d7616101
1 changed files with 20 additions and 1 deletions
|
|
@ -2,9 +2,28 @@ version: '2'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
gossa-server:
|
gossa-server:
|
||||||
image: pldubouilh/gossa
|
image: docker.io/pldubouilh/gossa:latest
|
||||||
container_name: gossa
|
container_name: gossa
|
||||||
restart: always
|
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:
|
ports:
|
||||||
- 8001:8001
|
- 8001:8001
|
||||||
volumes:
|
volumes:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue