miniNAS/docker_compose/gitea.yml

27 lines
662 B
YAML
Raw Normal View History

2021-12-26 16:23:16 +01:00
version: "3.3"
services:
server:
image: gitea/gitea:latest
restart: always
volumes:
- $GITEA_DATADIR:/data
- $GITEA_CONFIGDIR:/etc/gitea
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
- $CERTS_DIR/fullchain.pem:/var/lib/gitea/cert.pem
- $CERTS_DIR/privkey.pem:/var/lib/gitea/privkey.pem
expose:
- "3000"
- "2222"
environment:
- VIRTUAL_HOST=gitea.$LETSENCRYPT_DOMAIN
- VIRTUAL_PORT=3000
- LETSENCRYPT_HOST=gitea.$LETSENCRYPT_DOMAIN
- LETSENCRYPT_EMAIL=$LETSENCRYPT_EMAIL
networks:
default:
external:
name: $SERVER_DOCKER_NETWORKNAME