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__
# website
website/gitea
website/letsencrypt
# monerod

View File

@ -17,6 +17,7 @@ Forward the following ports to the server.
| service | port |
|-----------|--------------------|
| website | 80, 443 |
| gitea | 2222 |
| monerod | 18080 |
| p2pool | 3333, 37888, 37889 |
| minecraft | 25565 |
@ -26,10 +27,8 @@ Forward the following ports to the server.
Run the following commands.
```
apt install docker.io
apt install docker-compose
docker-compose build
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
gitea:
restart: always
image: gitea/gitea:latest
image: gitea/gitea:latest-rootless
ports:
- "2222:22"
# TODO add volumes for gitea default settings
# TODO add volumes to save data
- "2222:2222"
volumes:
- ./website/gitea:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
monerod:
restart: always
build: monerod/.

View File

@ -1 +1,2 @@
gitea
letsencrypt