Updated docker-compose to working state. Removed reliance on traefik.toml

- New .env example with streamlined variable names
- Assumes https by default with http-to-http redirect enabled (Remove the redirect on line 25 to disable this)
- Assumes each domain(s) specified are different from one another, so that all parts can all be accessed from the same port (443).
- Forcibly disabled traefik on the db so that it won't try to get a certificate for it (I don't know why it does this)
- Set specific versions for Matomo (3) and Ghost (2) to avoid watchtower automatically making big upgrades

Still missing:
- The first time Ghost will fail to launch as MariaDB isn't ready right away. docker-compose got away with a health check. I might want to play with https://github.com/vishnubob/wait-for-it later
This commit is contained in:
2019-02-20 15:31:20 +09:00
parent 38b4fc5e6c
commit 45d219ce92
5 changed files with 49 additions and 76 deletions

View File

@@ -10,19 +10,15 @@ BASIC_AUTH=
# Let's Encrypt needs an email address for registration.
ACME_EMAIL=
# The Traefik dashboard will be available at these domains.
# The URL is http://example.com/traefik/
TRAEFIK_DOMAINS=
# Your Matamo site will be available at these domains. If all domains
# have DNS records pointing to your server, they'll get SSL certs.
MATOMO_DOMAINS=
# You can comma-separate multiple domains if need be (e.g. for www.)
DOMAINS_BLOG=
DOMAINS_TRAEFIK=
DOMAINS_MATOMO=
# Set a secure password for the MySQL root user. Remember this so
# you can login to phpMyAdmin (as username "root").
MATOMO_DB_ROOT_PASSWORD=
DB_ROOT_PASSWORD=
# Set the MySQL database name, user and password for Matomo.
MATOMO_DB_NAME=matomo
MATOMO_DB_USER=matomo
MATOMO_DB_PASSWORD=
DB_NAME=davejansen
DB_USER=davejansen
DB_PASSWORD=