24 lines
692 B
YAML
24 lines
692 B
YAML
---
|
|
|
|
volumes:
|
|
gitea:
|
|
name: ${GITEA_VOLUME_NAME:-gitea}
|
|
|
|
services:
|
|
gitea:
|
|
container_name: ${GITEA_CONTAINER_NAME:-gitea}
|
|
image: ${GITEA_IMAGE:-gitea/gitea:1.20.4}
|
|
restart: always
|
|
environment:
|
|
- USER_UID=${GITEA_UID:-1000}
|
|
- USER_GID=${GITEA_GID:-1000}
|
|
# Security
|
|
# 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}
|
|
volumes:
|
|
- gitea:/data
|
|
- /etc/timezone:/etc/timezone:ro
|
|
- /etc/localtime:/etc/localtime:ro
|