diff options
| author | Fuwn <[email protected]> | 2024-06-25 00:49:36 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-06-25 00:49:36 +0000 |
| commit | b32780c083dd0e4f6ec6c4fbcb5a5821ab968515 (patch) | |
| tree | 14b91a72018fbab1704cfdc0e6afa1bff8809643 /README.md | |
| parent | docs(readme): add dynamic mode information (diff) | |
| download | gigi-b32780c083dd0e4f6ec6c4fbcb5a5821ab968515.tar.xz gigi-b32780c083dd0e4f6ec6c4fbcb5a5821ab968515.zip | |
build(docker): create docker container
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 27 |
1 files changed, 27 insertions, 0 deletions
@@ -20,8 +20,35 @@ Gigi is a Finger protocol server with few features. $ git clone [email protected]:Fuwn/gigi.git $ cd gigi $ tup +$ # or +$ ninja ``` +### Docker + +This command runs the latest Gigi Docker image, with port 79 mapped from inside +the container to port 7979 on the host system. In practice, you'd actually map +port 79 to port 79, but that requires root privileges, so we're using 7979. + +It also mounts the ./.gigi directory from the host system to the /gigi/.gigi +directory inside the container. This is where you'd place all your profile +files. In practice, you'd likely make this a named volume, and add files to the +named volume itself. + +```bash +$ docker run -v ./.gigi/:/gigi/.gigi -p 7979:79 fuwn/gigi:latest +$ # or +$ docker run -v gigi-data:/gigi/.gigi -p 79:79 fuwn/gigi:latest +``` + +The second command is the more practical one, as it uses a named volume to store +the profile files. The named volume is persistent, and can be found at +`/var/lib/docker/volumes/gigi-data/_data` on most FHS systems. + +Docker also significantly reduces the risk of running Gigi, as it is sandboxed +from the host system. In static mode, there is little to no risk, but in dynamic +mode, there is a significant risk for arbitrary code execution. + ### Configuration Gigi is configured through the `./gigi` directory. |