summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaphael <mail@raphaelkabo.com>2025-02-11 23:46:22 +0000
committerGitHub <noreply@github.com>2025-02-11 23:46:22 +0000
commitfe5d47e46a96c541f1bf472607d4158a9a7c6e18 (patch)
treec158a758c650885cb9577e4d4d222985e0125f67
parente89c3425eefadedce96582f0f5e31dcb692792d3 (diff)
parent51a0ecb536b86147ceb27901cc22b3ada8e06a6a (diff)
Merge pull request #189 from lowercasename/instance-information
Update docs and Docker Compose config
-rw-r--r--config/config.example.toml2
-rw-r--r--docker-compose.yml3
-rw-r--r--docs/running-gathio/installation.md44
3 files changed, 37 insertions, 12 deletions
diff --git a/config/config.example.toml b/config/config.example.toml
index d58fe35..32e2039 100644
--- a/config/config.example.toml
+++ b/config/config.example.toml
@@ -20,7 +20,7 @@ show_kofi = false
# 'Display this event/group on the public event/group list'.
show_public_event_list = false
# Which mail service to use to send emails to hosts and attendees. Options are
-# 'nodemailer' or 'sendgrid'. Configure settings for this mail
+# 'nodemailer', 'sendgrid', or 'none'. Configure settings for this mail
# service below.
mail_service = "none"
# An array of email addresses which are permitted to create events. If this is
diff --git a/docker-compose.yml b/docker-compose.yml
index 5a8a0d9..f799a9e 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -12,6 +12,9 @@ services:
volumes:
# The path to Gathio's config folder - change to match your system
- ./gathio-docker/config:/app/config
+ # The path to Gathio's static, public pages including instance description
+ # and privacy policy - change to match your system
+ - ./gathio-docker/static:/app/static
# The path to Gathio's user-uploaded event images folder - change to match your system
- ./gathio-docker/images:/app/public/events
mongo:
diff --git a/docs/running-gathio/installation.md b/docs/running-gathio/installation.md
index cdb3f44..f2c08a3 100644
--- a/docs/running-gathio/installation.md
+++ b/docs/running-gathio/installation.md
@@ -94,24 +94,43 @@ The easiest way to run Gathio using Docker is by using the provided
`docker-compose` configuration. We provide a Docker image at [GitHub
Container Repository](https://github.com/lowercasename/gathio/pkgs/container/gathio).
-Create a directory on your system where you'll keep the Gathio configuration
-file and another where Gathio can store user-uploaded event images. Copy the
-example config file into the config directory:
+Clone the Gathio repository onto your system - you'll need a few files from it in a minute.
+
+Create a few directories on your system:
+
+- One where you'll keep the Gathio configuration file
+- One where you'll keep Gathio's static files, such as the instance description
+ and any custom pages you may want to create
+- And another where Gathio can store user-uploaded event images.
+
+```bash
+mkdir -p ~/docker/gathio-docker/{config,images,static}
+```
+
+Copy the example config file from the Gathio repository directory into the Docker config directory,
+renaming it to `config.toml`:
```bash
-mkdir -p ~/docker/gathio-docker/{config,images}
cp config/config.example.toml ~/docker/gathio-docker/config/config.toml
```
-Under the `volumes` section of the `docker-compose.yml` configuration, adjust the
-configuration volume to match the folder you created:
+In the `docker-compose.yml` configuration file, adjust
+the `volumes` configuration to match the three folders you created:
```dockerfile
volumes:
- '/home/username/docker/gathio-docker/config:/app/config'
+ - '/home/username/docker/gathio-docker/static:/app/static'
- '/home/username/docker/gathio-docker/images:/app/public/events'
```
+As with all things in the Docker universe, two things seperated by a colon
+means `<thing on host computer>:<thing inside Docker container>`. So
+here you're saying "any files I put in the folder called
+`/home/username/docker/gathio-docker/config` on my computer will appear inside
+the Docker container at the path `/app/static`. Don't change the paths on the
+Docker container side - only the ones on the host side!
+
Adjust any settings in the config file, especially the MongoDB URL, which should
read as follows for the standard Docker Compose config, and the email service if you
want to enable it:
@@ -121,19 +140,22 @@ mongodb_url = "mongodb://mongo:27017/gathio"
mail_service = "nodemailer"
```
-You can copy the `docker-compose.yml` file into that same `gathio-docker` directory
-you created - you don't need any of the source code. Once you're done, your directory
-should look something like this:
+You can copy the `docker-compose.yml` file into that same `gathio-docker`
+directory you created - you don't need to keep any of the other source code. Once
+you're done, your directory should look something like this:
```
gathio-docker
├── config
│ └── config.toml
├── docker-compose.yml
-└── images
+├── images
+└── static
+ ├── instance-description.md
+ └── privacy-policy.md
```
-Finally, from wherever you've put your `docker-compose.yml` file, start the Docker stack:
+Finally, from wherever you've put your `docker-compose.yml` file, start the Docker Compose stack:
```bash
cd gathio-docker