gitea/docker-compose.yml

46 lines
915 B
YAML

version: "2"
networks:
webproxy:
external: true
backend-gitea:
external: true
services:
gitea:
image: gitea/gitea:1.13.6
environment:
- USER_UID=1000
- USER_GID=1000
- DB_TYPE=mysql
- DB_HOST=db:3306
- DB_NAME=§{MYSQL_DATABASE}
- DB_USER=§{MYSQL_USER}
- DB_PASSWD=§{MYSQL_PASSWORD}
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_RANDOM_ROOT_PASSWORD='1'
- MYSQL_USER=§{MYSQL_USER}
- MYSQL_PASSWORD=§{MYSQL_PASSWORD}
- MYSQL_DATABASE=§{MYSQL_DATABASE}
networks:
- backend-gitea
container_name: bmen-gitea-db
volumes:
- /opt/appdata/gitea/mysql:/var/lib/mysql