diff --git a/ansible/roles/mastodon/docker-stack.yml.j2 b/ansible/roles/mastodon/docker-stack.yml.j2 index 1a83545..b7ecf41 100644 --- a/ansible/roles/mastodon/docker-stack.yml.j2 +++ b/ansible/roles/mastodon/docker-stack.yml.j2 @@ -105,6 +105,10 @@ services: environment: - 'REDIS_HOST=redis' - 'LOCAL_DOMAIN=social.pizzapim.nl' + - 'DB_HOST=db' + - 'DB_USER=mastodon' + - 'DB_NAME=mastodon_production' + - 'DB_PASS=password' networks: - mastodon - traefik @@ -124,6 +128,8 @@ services: - "traefik.http.routers.mastodon-streaming.rule=(Host(`social.pizzapim.nl`) && PathPrefix(`/api/v1/streaming`))" - traefik.http.routers.mastodon-streaming.service=mastodon-streaming - traefik.http.services.mastodon-streaming.loadbalancer.server.port=4000 + - traefik.http.routers.mastodon-streaming.tls=true + - traefik.http.routers.mastodon-streaming.tls.certresolver=letsencrypt - traefik.docker.network=traefik sidekiq: image: tootsuite/mastodon:v4.1