diff --git a/gitea/.env.sample b/gitea/.env.sample new file mode 100644 index 0000000..d181ac8 --- /dev/null +++ b/gitea/.env.sample @@ -0,0 +1,10 @@ +# Uncomment and change the following variables if you want to use them. +#RESTART=unless-stopped +#SYNOLOGY_VOLUME=volume1 +#STACK_NAME=gitea +#UID=1024 +#GID=101 +#GITEA_CONTAINER_NAME=Gitea +#GITEA_TAG=latest +#GITEA_PORT_HTTP=3000 +#GITEA_PORT_SSH=22 diff --git a/gitea/compose.yml b/gitea/compose.yml new file mode 100644 index 0000000..9e8153a --- /dev/null +++ b/gitea/compose.yml @@ -0,0 +1,14 @@ +services: + # Gitea + server: + container_name: ${GITEA_CONTAINER_NAME:-Gitea} + image: gitea/gitea:${GITEA_TAG:-latest} + restart: ${RESTART:-unless-stopped} + environment: + USER_UID: ${UID:-1024} + USER_GID: ${GID:-101} + ports: + - ${GITEA_PORT_HTTP:-3000}:3000 + - ${GITEA_PORT_SSH:-22}:22 + volumes: + - /${SYNOLOGY_VOLUME:-volume1}/docker/${STACK_NAME:-gitea}/${GITEA_CONTAINER_NAME:-Gitea}/data:/data