diff --git a/.gitignore b/.gitignore index d6cb11c..22fee05 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ __pycache__ # website +website/gitea website/letsencrypt # monerod diff --git a/README.md b/README.md index 87e3d8d..35f221d 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/compose.yml b/compose.yml index fc9b6e0..8b68a69 100644 --- a/compose.yml +++ b/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/. diff --git a/website/.dockerignore b/website/.dockerignore index 153240a..42483b2 100644 --- a/website/.dockerignore +++ b/website/.dockerignore @@ -1 +1,2 @@ +gitea letsencrypt