4get-apache/README.md

62 lines
1.8 KiB
Markdown
Raw Normal View History

2025-01-06 22:33:38 -05:00
# 4get-apache
2025-01-06 22:47:16 -05:00
Dockerfile and compose for 4get bleeding edge, with PUID, PGID and port config.
2025-01-06 22:45:58 -05:00
## Why?
2025-01-06 22:47:16 -05:00
2025-01-06 22:45:58 -05:00
1. I wanted to learn how to build a custom docker image
2. The official 4get image takes forever for updates
3. There is no PUID, PGID or port configuration on the official image
2025-01-06 22:47:51 -05:00
I kept the structure pretty simple, so hey, it might help another noob learn Dockerfile
2025-01-06 22:39:22 -05:00
## Dockerfile
2025-01-06 22:47:16 -05:00
2025-01-06 23:56:42 -05:00
Simply ```git clone``` this repo:
2025-01-06 22:43:49 -05:00
```bash
2025-01-06 22:39:22 -05:00
git clone https://git.plunked.party/tony/4get-apache
2025-01-06 22:40:39 -05:00
```
2025-01-06 23:42:58 -05:00
and then run ```./rebuild```:
2025-01-06 22:43:49 -05:00
```bash
2025-01-06 22:39:22 -05:00
cd 4get-apache/
chmod +x ./rebuild
./rebuild
2025-01-06 22:40:39 -05:00
```
2025-01-06 22:39:22 -05:00
## Docker Compose
2025-01-06 22:47:16 -05:00
2025-01-06 22:43:49 -05:00
Here's an example docker-compose.yaml for the service:
```yaml
services:
fourget:
container_name: fourget
image: fourget-apache
2025-01-08 08:40:54 -05:00
restart: unless-stopped
2025-01-06 22:43:49 -05:00
environment:
2025-01-08 08:45:29 -05:00
# Info: https://git.lolcat.ca/lolcat/4get/src/branch/master/docs/docker.md
2025-01-06 22:56:22 -05:00
- FOURGET_SERVER_NAME=4get.plunked.party
2025-01-06 22:43:49 -05:00
- FOURGET_SERVER_LONG_DESCRIPTION="PLUNKED!!!!"
- FOURGET_SERVER_SHORT_DESCRIPTION="click here 4 sum fun."
- FOURGET_BOT_PROTECTION=0
- FOURGET_DEFAULT_THEME="Dark"
2025-01-06 22:57:34 -05:00
# My additions
2025-01-08 08:40:54 -05:00
- PUID=1001
- PGID=1001
2025-01-06 22:43:49 -05:00
- PORT=6969
volumes:
2025-01-06 22:56:22 -05:00
# Optional, for custom banners and home.html
2025-01-06 22:43:49 -05:00
- ./4get/banner:/var/www/html/4get/banner
2025-01-07 10:11:46 -05:00
# - ./4get/template/home.html:/var/www/html/4get/template/home.html
2025-01-07 10:11:00 -05:00
ports:
- '6969:6969'
2025-01-06 22:43:49 -05:00
```
2025-01-06 23:56:42 -05:00
There's some startup verbose when running ```docker compose logs```.
2025-01-06 23:02:53 -05:00
2025-01-06 23:11:26 -05:00
## HTTPS Notice
2025-01-06 23:02:53 -05:00
2025-01-06 23:04:17 -05:00
The included httpd.conf doesn't include a HTTPS setup.
2025-01-06 23:02:53 -05:00
2025-01-07 10:20:59 -05:00
If you're unfamiliar with this stuff, I would recommend using [nginx-proxy-manager](https://github.com/NginxProxyManager/nginx-proxy-manager) and
2025-01-06 23:02:53 -05:00
setting up HTTPS there.
2025-01-20 18:04:15 -05:00
You can then use nginx-proxy-manager to reverse proxy to your 4get service through your domain with HTTPS certs.