gitea/docker-compose.yml

46 lines
840 B
YAML

version: "2"
networks:
webproxy:
external: true
backend-gitea:
external: true
services:
gitea:
image: gitea/gitea:1.12.5
environment:
- USER_UID=1000
- USER_GID=1000
- DB_TYPE=mysql
- DB_HOST=db:3306
- DB_NAME=gitea
- DB_USER=gitea
- DB_PASSWD=gitea
restart: always
networks:
- webproxy
- backend-gitea
volumes:
- /opt/appdata/gitea/data:/data
ports:
- "222:22"
container_name: bmen-gitea
depends_on:
- db
db:
image: mysql:5.7
restart: always
environment:
- MYSQL_ROOT_PASSWORD=gitea
- MYSQL_USER=gitea
- MYSQL_PASSWORD=gitea
- MYSQL_DATABASE=gitea
networks:
- backend-gitea
container_name: bmen-gitea-db
volumes:
- /opt/appdata/gitea/mysql:/var/lib/mysql