31 lines
664 B
Plaintext
31 lines
664 B
Plaintext
|
# {{ 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
|