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

31 lines
664 B
Plaintext
Raw Normal View History

2023-11-06 10:39:27 +08:00
# {{ ansible_managed }}
version: "3"
services:
gitea:
# image: gitea/gitea:latest
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"
networks:
- IPv4
networks:
IPv4:
external:
name: IPv4