🎉 First commit!
This commit is contained in:
commit
67af34231d
1
.env.example
Normal file
1
.env.example
Normal file
@ -0,0 +1 @@
|
||||
DOMAIN=example.com
|
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
mnt/
|
||||
.env
|
14
backup.conf
Normal file
14
backup.conf
Normal file
@ -0,0 +1,14 @@
|
||||
## Backup config file for service. To find the syntax for this file,
|
||||
## take a look at `man duplicity` or the web docs at this url:
|
||||
## http://duplicity.nongnu.org/vers8/duplicity.1.html#sect9
|
||||
##
|
||||
## Special syntax has been added, a single pound sign line will be
|
||||
## interpreted like a variable assignment, a line with two pound
|
||||
## signs will be seen as comments.
|
||||
|
||||
|
||||
## This make daily backups, and keep them for one months, making
|
||||
## incremental backups and doing a full backup once a week.
|
||||
# RETAIN=2W
|
||||
# INCREMENT=1W
|
||||
# INTERVAL=1D
|
45
docker-compose.yml
Normal file
45
docker-compose.yml
Normal file
@ -0,0 +1,45 @@
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
server:
|
||||
image: gitea/gitea:1
|
||||
environment:
|
||||
- "USER_UID=0"
|
||||
- "USER_GID=0"
|
||||
- "DB_TYPE=postgres"
|
||||
- "DB_HOST=db:5432"
|
||||
- "DB_NAME=gitea"
|
||||
- "DB_USER=gitea"
|
||||
- "DB_PASSWD=gitea"
|
||||
- "VIRTUAL_HOST=${DOMAIN}"
|
||||
- "VIRTUAL_PORT=3000"
|
||||
- "LETSENCRYPT_HOST=${DOMAIN}"
|
||||
- "APP_NAME=Git"
|
||||
- "DOMAIN=${DOMAIN}"
|
||||
- "DISABLE_SSH=true"
|
||||
restart: always
|
||||
networks:
|
||||
- default
|
||||
- 10000-nginx-proxy_nginx-proxy
|
||||
volumes:
|
||||
- ./mnt/gitea:/data
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
depends_on:
|
||||
- db
|
||||
|
||||
db:
|
||||
image: postgres:9.6
|
||||
restart: always
|
||||
environment:
|
||||
- "POSTGRES_USER=gitea"
|
||||
- "POSTGRES_PASSWORD=gitea"
|
||||
- "POSTGRES_DB=gitea"
|
||||
expose:
|
||||
- 5432
|
||||
volumes:
|
||||
- ./mnt/postgres:/var/lib/postgresql/data
|
||||
|
||||
networks:
|
||||
10000-nginx-proxy_nginx-proxy:
|
||||
external: true
|
1
nginx.conf
Normal file
1
nginx.conf
Normal file
@ -0,0 +1 @@
|
||||
client_max_body_size 256m;
|
Loading…
Reference in New Issue
Block a user