0
0
opnxng-deploy-playbook/templates/compose/gitea.yaml.j2

38 lines
959 B
Plaintext
Raw Normal View History

2023-11-06 10:39:27 +08:00
# {{ ansible_managed }}
version: "3"
services:
gitea:
image: gitea/gitea:nightly
container_name: gitea
security_opt:
- no-new-privileges
environment:
- PUID=1000
- PGID=1000
# - TZ=Asia/Singapore
- USER_UID=1000
- USER_GID=1000
- ROOT_URL=https://git.opnxng.com
volumes:
- {{ docker_dir }}/gitea/data:/data
- {{ docker_dir }}/gitea/packages:/packages
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
restart: always
ports:
- "3000:3000"
2023-11-09 11:38:03 +08:00
labels:
- "com.centurylinklabs.watchtower.enable=false"
2023-11-06 10:39:27 +08:00
networks:
- IPv4
networks:
IPv4:
external:
2023-11-09 11:38:03 +08:00
name: IPv4
# Don't auto-update for now. Switch to stable rootless later
# image: gitea/gitea:latest-rootless
# - GITEA_APP_INI=/data/gitea/conf/app.ini
# - GITEA_TEMP=/data/gitea/tmp
# - GITEA_CUSTOM=/data/gitea
# - GITEA_WORK_DIR=/app/gitea/gitea