gitea/docker-compose.yml

46 lines
915 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:
2020-10-07 21:27:24 +00:00
gitea:
2021-08-19 07:03:09 +00:00
image: gitea/gitea:1.14.1
2019-10-01 20:05:49 +00:00
environment:
- USER_UID=1000
- USER_GID=1000
- DB_TYPE=mysql
- DB_HOST=db:3306
2020-10-07 21:27:57 +00:00
- DB_NAME=§{MYSQL_DATABASE}
- DB_USER=§{MYSQL_USER}
- DB_PASSWD=§{MYSQL_PASSWORD}
2019-10-01 20:05:49 +00:00
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:
2020-10-07 21:27:57 +00:00
- MYSQL_RANDOM_ROOT_PASSWORD='1'
- MYSQL_USER=§{MYSQL_USER}
- MYSQL_PASSWORD=§{MYSQL_PASSWORD}
- MYSQL_DATABASE=§{MYSQL_DATABASE}
networks:
- backend-gitea
2019-10-01 20:05:49 +00:00
container_name: bmen-gitea-db
volumes:
- /opt/appdata/gitea/mysql:/var/lib/mysql