summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlolcat <will@lolcat.ca>2023-09-13 09:02:46 -0400
committerlolcat <will@lolcat.ca>2023-09-13 09:02:46 -0400
commit455d4d508bc108c152001ab3e75f935953b3c5a5 (patch)
tree6b1e972793b6ffcbb9a3ec1b62249cb55447d190
parentedc42ea35d05b536c2bebfcb78d1bf6007445e85 (diff)
parent24a00eb2e25d653b885a8e373425d3a279490c2a (diff)
Merge branch 'master' of https://git.lolcat.ca/lolcat/4get
i dont know what im doing i fucking hate git
-rw-r--r--README.md35
-rw-r--r--docker-compose.yaml17
2 files changed, 48 insertions, 4 deletions
diff --git a/README.md b/README.md
index 99e8a86..0214e13 100644
--- a/README.md
+++ b/README.md
@@ -225,12 +225,39 @@ Obviously replace `<youronionaddress>` by the onion address of `/var/lib/tor/4ge
## Docker Install
```
-git clone https://git.lolcat.ca/lolcat/4get
-cd 4get
-docker build -t 4get .
-docker run -d -p 80:80 -p 443:443 -e FOURGET_SERVER_NAME="4get.ca" -e FOURGET_SERVER_ADMIN_EMAIL="you@example.com" -v /etc/letsencrypt/live/domain.tld:/etc/4get/certs 4get
+docker run -d -p 80:80 -p 443:443 -e FOURGET_SERVER_NAME="4get.ca" -e FOURGET_SERVER_ADMIN_EMAIL="you@example.com" -v /etc/letsencrypt/live/domain.tld:/etc/4get/certs luuul/4get:1.0.0
```
replace enviroment variables FOURGET_SERVER_NAME and FOURGET_SERVER_ADMIN_EMAIL with relevant values
the certs directory expects files named `cert.pem`, `chain.pem`, `privkey.pem`
+
+## Docker compose
+
+copy `docker-compose.yaml`
+
+create a directory with images named `banners` for example and mount to `/var/www/html/4get/banner`
+to serve custom banners
+
+```
+version: "3.7"
+
+services:
+ fourget:
+ image: luuul/4get:1.0.0
+ restart: always
+ environment:
+ - FOURGET_SERVER_NAME=4get.ca
+ - FOURGET_SERVER_ADMIN_EMAIL="you@example.com"
+
+ ports:
+ - "80:80"
+ - "443:443"
+
+ volumes:
+ - /etc/letsencrypt/live/domain.tld:/etc/4get/certs
+ - ./banners:/var/www/html/4get/banner
+```
+
+Replace relevant values and start with `docker-compose up -d`
+
diff --git a/docker-compose.yaml b/docker-compose.yaml
new file mode 100644
index 0000000..3c34548
--- /dev/null
+++ b/docker-compose.yaml
@@ -0,0 +1,17 @@
+version: "3.7"
+
+services:
+ fourget:
+ image: luuul/4get:1.0.0
+ restart: always
+ environment:
+ - FOURGET_SERVER_NAME=beak.chat
+ - FOURGET_SERVER_ADMIN_EMAIL="you@example.com"
+
+ ports:
+ - "80:80"
+ - "443:443"
+
+ volumes:
+ - /etc/letsencrypt/live/domain.tld:/etc/4get/certs
+ - ./banners:/var/www/html/4get/banner