2021-03-25 13:37:10 +00:00
|
|
|
version: '3.5'
|
|
|
|
|
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
external:
|
|
|
|
name: traefik_default
|
|
|
|
|
|
|
|
services:
|
|
|
|
gitea-db:
|
|
|
|
image: mariadb:10
|
|
|
|
container_name: gitea-db
|
|
|
|
restart: unless-stopped
|
|
|
|
env_file: live.env
|
|
|
|
labels:
|
|
|
|
# Watchtower
|
|
|
|
- "com.centurylinklabs.watchtower.enable=true"
|
|
|
|
networks:
|
|
|
|
- default
|
|
|
|
volumes:
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
- /etc/timezone:/etc/timezone:ro
|
|
|
|
- ${GITEA_ROOT}/db:/var/lib/mysql
|
|
|
|
environment:
|
|
|
|
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
|
|
|
|
- MYSQL_USER=${MYSQL_USER}
|
|
|
|
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
|
|
|
|
- MYSQL_DATABASE=gitea
|
|
|
|
|
|
|
|
gitea-app:
|
|
|
|
image: gitea/gitea:latest
|
|
|
|
container_name: gitea-app
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
- /etc/timezone:/etc/timezone:ro
|
|
|
|
- ${GITEA_ROOT}/data:/data
|
2021-04-22 19:38:02 +00:00
|
|
|
#- /home/git/.ssh/:/data/git/.ssh
|
2021-03-25 13:37:10 +00:00
|
|
|
|
|
|
|
env_file: live.env
|
|
|
|
environment:
|
|
|
|
- USER_UID=1000
|
|
|
|
- USER_GID=1000
|
|
|
|
- DB_TYPE=mysql
|
|
|
|
- DB_HOST=gitea-db:3306
|
|
|
|
- DB_NAME=gitea
|
|
|
|
- DB_USER=${MYSQL_USER}
|
|
|
|
- DB_PASSWD=${MYSQL_PASSWORD}
|
|
|
|
- DOMAIN=gitea.${DOMAIN}
|
2021-04-22 19:38:02 +00:00
|
|
|
#- SSH_PORT=2222
|
|
|
|
- DISABLE_SSH=true
|
2021-03-25 13:37:10 +00:00
|
|
|
- DISABLE_REGISTRATION=true
|
|
|
|
- ROOT_URL=https://gitea.${DOMAIN}/
|
|
|
|
- "APP_NAME=Gitea: Git Gud!"
|
|
|
|
labels:
|
|
|
|
# Watchtower
|
|
|
|
- "com.centurylinklabs.watchtower.enable=true"
|
|
|
|
# Routes
|
|
|
|
- "traefik.enable=true"
|
|
|
|
- "traefik.http.routers.gitea.entrypoints=websecure"
|
|
|
|
- "traefik.http.routers.gitea.rule=Host(`gitea.${DOMAIN}`)"
|
|
|
|
- "traefik.http.routers.gitea.tls=true"
|
|
|
|
- "traefik.http.routers.gitea.tls.certresolver=myresolver"
|
|
|
|
- "traefik.http.services.gitea.loadbalancer.server.port=3000"
|
2021-04-29 09:11:57 +00:00
|
|
|
<<<<<<< HEAD
|
2021-03-25 13:37:10 +00:00
|
|
|
- "traefik.tcp.routers.gitea-ssh.rule=HostSNI(`*`)"
|
|
|
|
- "traefik.tcp.routers.gitea-ssh.entrypoints=ssh"
|
|
|
|
- "traefik.tcp.routers.gitea-ssh.service=gitea-ssh-svc"
|
|
|
|
- "traefik.tcp.services.gitea-ssh-svc.loadbalancer.server.port=2222"
|
2021-04-29 09:11:57 +00:00
|
|
|
=======
|
2021-04-28 10:13:46 +00:00
|
|
|
# SSH
|
|
|
|
#- "traefik.tcp.routers.gitea-ssh.rule=HostSNI(`*`)"
|
|
|
|
#- "traefik.tcp.routers.gitea-ssh.entrypoints=ssh"
|
|
|
|
#- "traefik.tcp.routers.gitea-ssh.service=gitea-ssh-svc"
|
|
|
|
#- "traefik.tcp.services.gitea-ssh-svc.loadbalancer.server.port=2222"
|
2021-04-29 09:11:57 +00:00
|
|
|
>>>>>>> 5de4093a2960c08d427742f1fd7053da76d5d9d3
|
2021-03-25 13:37:10 +00:00
|
|
|
depends_on:
|
|
|
|
- gitea-db
|
|
|
|
networks:
|
|
|
|
- default
|