Add gitea configuration

This commit is contained in:
michirod 2020-12-14 20:36:50 +01:00
parent c1b95e6b25
commit c2bb85e16b
2 changed files with 40 additions and 0 deletions

2
gitea/.env Normal file
View File

@ -0,0 +1,2 @@
GITEA_DATA_LOCATION=/mnt/data/gitea/data
GITEA_DB_LOCATION=/mnt/data/gitea/db

38
gitea/docker-compose.yml Normal file
View File

@ -0,0 +1,38 @@
version: '2'
services:
web:
image: gitea/gitea
volumes:
- ${GITEA_DATA_LOCATION}:/data
ports:
- "3000:3000"
- "55522:22"
depends_on:
- db
env_file:
- ./reverse_proxy.env.secret
- ./gitea_conf.env.secret
environment:
- VIRTUAL_PORT=3000
restart: always
networks:
- proxy_network
- gitea_network
db:
image: mariadb:10
restart: always
env_file:
- ./db.env.secret
environment:
- MYSQL_DATABASE=gitea
- MYSQL_USER=gitea
volumes:
- ${GITEA_DB_LOCATION}:/var/lib/mysql
networks:
- gitea_network
networks:
gitea_network:
proxy_network:
external:
name: nginx_proxy_network