gitea/docker-compose.yml

46 lines
841 B
YAML
Raw Normal View History

2019-10-01 20:05:49 +00:00
version: "2"
networks:
webproxy:
external: true
backend-gitea:
external: true
2019-10-01 20:05:49 +00:00
services:
server:
2020-10-07 21:10:43 +00:00
image: gitea/gitea:1.12.5
2019-10-01 20:05:49 +00:00
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
2019-10-01 20:05:49 +00:00
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
2019-10-01 20:05:49 +00:00
container_name: bmen-gitea-db
volumes:
- /opt/appdata/gitea/mysql:/var/lib/mysql