summaryrefslogtreecommitdiff
path: root/Readme.md
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2021-07-02 15:51:04 +0200
committerDaniel Weipert <code@drogueronin.de>2021-07-02 15:51:04 +0200
commiteddb042815eef3488e890468bc39507a375d1081 (patch)
treef3381910dc79e9ba76e5fb022b641e158b063975 /Readme.md
Initial commit
Diffstat (limited to 'Readme.md')
-rw-r--r--Readme.md79
1 files changed, 79 insertions, 0 deletions
diff --git a/Readme.md b/Readme.md
new file mode 100644
index 0000000..a809966
--- /dev/null
+++ b/Readme.md
@@ -0,0 +1,79 @@
+Mastodon Docker Setup with traefik
+===
+
+The scripts provided modify the official `docker-compose.yml` file
+to be
+
+- fast and easy to set up, without build step
+- usable with [traefik](https://traefik.io/)
+
+The provided [docker-compose.yml](docker-compose.yml) file can be used to set up traefik.
+
+## Requirements
+
+- PHP
+- Docker
+- [traefik](https://traefik.io/)
+
+
+## Instructions
+
+Run the scripts in the following order
+
+```
+./bin/build.php
+./bin/setup.php
+./bin/run.php
+```
+
+### Build
+
+```
+./bin/build.php
+```
+
+Builds the docker-compose.yml file with traefik labels
+
+
+### Setup
+
+```
+./bin/setup.php
+```
+
+This runs the `mastodon:setup` command to populate the `.env.production` file.
+
+Config:
+
+- Domain name: ${same as in .env DOMAIN}
+- Single user mode?: up to you
+- Using docker?: Yes
+- PostgreSQL host: default (db)
+- PostgreSQL port: default (5432)
+- PostgreSQL database: default (postgres)
+- PostgreSQL user: default (postgres)
+- PostgreSQL password: ${same as in .env POSTGRES_PASSWORD}
+- Redis host: default (redis)
+- Redis port: default (6379)
+- Redis password: default (empty)
+- Store uploaded files on the cloud?: up to you
+- Send e-mails from localhost?: up to you
+- Save configuration?: y
+- Prepare the database now?: y
+- Create admin user?: up to you
+
+
+### Run
+
+```
+./bin/run.php
+```
+
+Runs mastodon
+
+## Credits
+
+- https://github.com/peterrus/docker-mastodon
+- https://www.innoq.com/en/blog/traefik-v2-and-mastodon/
+- https://gist.github.com/fredix/6ef5c95c600dbbb9afc0e0538a93d90d
+- https://www.howtoforge.com/how-to-install-mastodon-social-network-with-docker-on-ubuntu-1804/