You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

39 lines
924 B

version: '2.4'
services:
gitea:
image: gitea/gitea:$GITEA_VERSION-rootless
container_name: $CONTAINER_NAME
hostname: $CONTAINER_NAME
domainname: $DOMAIN_NAME
pids_limit: 150
cpu_shares: 450
mem_limit: 500m
volumes:
- local-gitea-config:/etc/gitea:rw
- nfs-gitea-data:/var/lib/gitea:rw
networks:
gitea-net:
ipv4_address: $PREFIX_IPV4.$NET_GITEA.$UNIT
ipv6_address: $PREFIX_IPV6:$NET_GITEA::$UNIT
dns:
- $PREFIX_IPV4.$NET_GITEA.$LOCAL_DNS_UNIT
- 9.9.9.9
dns_search: .
ports:
- "${PUBLIC_IPV4}:42084:42084"
- "[${PUBLIC_IPV6}]:42084:42084"
restart: on-failure:5
user: "65534:65534"
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "2"
volumes:
local-gitea-config:
external: true
nfs-gitea-data:
external: true
networks:
gitea-net:
external: true