add gitea

This commit is contained in:
Matthew Tran 2023-09-11 04:02:28 +00:00
parent 923479da89
commit a41b546764
4 changed files with 12 additions and 9 deletions

1
.gitignore vendored
View File

@ -2,6 +2,7 @@
__pycache__ __pycache__
# website # website
website/gitea
website/letsencrypt website/letsencrypt
# monerod # monerod

View File

@ -17,6 +17,7 @@ Forward the following ports to the server.
| service | port | | service | port |
|-----------|--------------------| |-----------|--------------------|
| website | 80, 443 | | website | 80, 443 |
| gitea | 2222 |
| monerod | 18080 | | monerod | 18080 |
| p2pool | 3333, 37888, 37889 | | p2pool | 3333, 37888, 37889 |
| minecraft | 25565 | | minecraft | 25565 |
@ -26,10 +27,8 @@ Forward the following ports to the server.
Run the following commands. Run the following commands.
``` ```
apt install docker.io docker compose build
apt install docker-compose docker compose up -d # auto restarts on reboot!
docker-compose build
docker-compose up -d # auto restarts on reboot!
``` ```
TODO backup script Note for first start you'll need to configure Gitea.

View File

@ -10,11 +10,13 @@ services:
- ./website/letsencrypt:/etc/letsencrypt - ./website/letsencrypt:/etc/letsencrypt
gitea: gitea:
restart: always restart: always
image: gitea/gitea:latest image: gitea/gitea:latest-rootless
ports: ports:
- "2222:22" - "2222:2222"
# TODO add volumes for gitea default settings volumes:
# TODO add volumes to save data - ./website/gitea:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
monerod: monerod:
restart: always restart: always
build: monerod/. build: monerod/.

View File

@ -1 +1,2 @@
gitea
letsencrypt letsencrypt