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