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