mirror of
https://github.com/pldubouilh/gossa
synced 2025-12-06 08:22:32 +01:00
fix: issues with podman
Signed-off-by: rare-magma <rare-magma@posteo.eu>
This commit is contained in:
parent
d4a60b3ece
commit
5a1f75265d
2 changed files with 9 additions and 4 deletions
|
|
@ -5,10 +5,11 @@ RUN make
|
|||
|
||||
FROM docker.io/library/alpine:3.20
|
||||
ENV UID="1000" GID="1000" HOST="0.0.0.0" PORT="8001" PREFIX="/" FOLLOW_SYMLINKS="false" SKIP_HIDDEN_FILES="true" DATADIR="/shared" READONLY="false" VERB="false"
|
||||
COPY --from=builder /gossaSrc/gossa /gossa
|
||||
RUN addgroup -g ${GID} user \
|
||||
&& adduser -D -u ${UID} -G user user
|
||||
COPY --from=builder /gossaSrc/gossa /gossa
|
||||
WORKDIR ${DATADIR}
|
||||
RUN chown ${UID}:${GID} ${DATADIR}
|
||||
USER ${UID}:${GID}
|
||||
WORKDIR /home/user/${DATADIR}
|
||||
ENTRYPOINT /gossa -h ${HOST} -p ${PORT} -k=${SKIP_HIDDEN_FILES} -ro=${READONLY} --symlinks=${FOLLOW_SYMLINKS} --prefix=${PREFIX} --verb=${VERB} ${DATADIR}
|
||||
HEALTHCHECK --timeout=5s --start-period=5s --retries=3 CMD wget --no-verbose --tries=1 --spider 127.0.0.1:8001 || exit 1
|
||||
|
|
@ -8,10 +8,11 @@ services:
|
|||
read_only: true
|
||||
# uncomment to set the user
|
||||
# user: "1000:1000"
|
||||
# userns_mode: "keep-id" # uncomment if using rootless podman as well as the x-podman directive at the bottom
|
||||
# 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
|
||||
# - UID=1000 # this should match the user set above
|
||||
# - GID=1000 # this should match the user's group
|
||||
cap_drop:
|
||||
- ALL
|
||||
cap_add:
|
||||
|
|
@ -33,3 +34,6 @@ services:
|
|||
# - "traefik.port=8001"
|
||||
# - "traefik.backend=gossa"
|
||||
# - "traefik.frontend.rule=Host:${GOSSA}.${DOMAIN}"
|
||||
|
||||
# x-podman: # uncomment if using rootless podman as well as the userns_mode directive at the top
|
||||
# in_pod: false
|
||||
Loading…
Reference in a new issue