2023-09-28 11:58:49 +02:00
|
|
|
---
|
|
|
|
|
2020-05-15 23:34:50 +02:00
|
|
|
version: "3.8"
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
gitea:
|
2021-03-09 10:41:06 +01:00
|
|
|
name: ${GITEA_VOLUME_NAME:-gitea}
|
2020-05-15 23:34:50 +02:00
|
|
|
|
|
|
|
services:
|
|
|
|
gitea:
|
2021-03-09 10:41:06 +01:00
|
|
|
container_name: ${GITEA_CONTAINER_NAME:-gitea}
|
2023-09-28 12:00:00 +02:00
|
|
|
image: ${GITEA_IMAGE:-gitea/gitea:1.20.4}
|
2020-05-15 23:34:50 +02:00
|
|
|
restart: always
|
|
|
|
environment:
|
2023-02-21 11:58:06 +01:00
|
|
|
- USER_UID=${GITEA_UID:-1000}
|
|
|
|
- USER_GID=${GITEA_GID:-1000}
|
|
|
|
# Security
|
2023-02-21 12:44:00 +01:00
|
|
|
# docker run -it --rm gitea/gitea:1 gitea generate secret SECRET_KEY
|
|
|
|
- GITEA__security__SECRET_KEY=${GITEA_SECRET_KEY}
|
|
|
|
# docker run -it --rm gitea/gitea:1 gitea generate secret INTERNAL_TOKEN
|
|
|
|
- GITEA__security__INTERNAL_TOKEN=${GITEA_INTERNAL_TOKEN}
|
2020-05-15 23:34:50 +02:00
|
|
|
volumes:
|
|
|
|
- gitea:/data
|
|
|
|
- /etc/timezone:/etc/timezone:ro
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|