Add gitea configuration
This commit is contained in:
parent
c1b95e6b25
commit
c2bb85e16b
2
gitea/.env
Normal file
2
gitea/.env
Normal 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
38
gitea/docker-compose.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user