mirror of
https://github.com/dragonlock2/matthewtran.com.git
synced 2025-10-11 12:07:56 +00:00
add gitea
This commit is contained in:
parent
923479da89
commit
a41b546764
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,6 +2,7 @@
|
||||
__pycache__
|
||||
|
||||
# website
|
||||
website/gitea
|
||||
website/letsencrypt
|
||||
|
||||
# monerod
|
||||
|
@ -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.
|
||||
|
10
compose.yml
10
compose.yml
@ -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/.
|
||||
|
@ -1 +1,2 @@
|
||||
gitea
|
||||
letsencrypt
|
||||
|
Loading…
x
Reference in New Issue
Block a user