4get-apache/README.md

42 lines
1.1 KiB
Markdown
Raw Normal View History

2025-01-06 22:33:38 -05:00
# 4get-apache
2025-01-06 22:39:22 -05:00
Dockerfile and compose for 4get bleeding edge, with PUID and PGID.
2025-01-06 22:45:58 -05:00
## Why?
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:39:22 -05:00
## Dockerfile
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 22:39:22 -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:43:49 -05:00
Here's an example docker-compose.yaml for the service:
```yaml
services:
fourget:
container_name: fourget
image: fourget-apache
restart: ${RESTART_MODE}
environment:
- FOURGET_SERVER_NAME=4get.plunked.party
- FOURGET_SERVER_LONG_DESCRIPTION="PLUNKED!!!!"
- FOURGET_SERVER_SHORT_DESCRIPTION="click here 4 sum fun."
- FOURGET_BOT_PROTECTION=0
- FOURGET_DEFAULT_THEME="Dark"
- PUID=${FOURGET_ID}
- PGID=${FOURGET_ID}
- PORT=6969
volumes:
- ./4get/banner:/var/www/html/4get/banner
- ./4get/template/home.html:/var/www/html/4get/template/home.html
```
There's some verbose when running docker compose logs.