|
|
|
@ -11,12 +11,14 @@ services: |
|
|
|
|
test: ['CMD', 'pg_isready', '-U', "mastodon", "-d", "mastodon_production"] |
|
|
|
|
volumes: |
|
|
|
|
- ./data/mastodon/database:/var/lib/postgresql/data |
|
|
|
|
- ../prod.dump:/prod.dump:ro |
|
|
|
|
environment: |
|
|
|
|
- POSTGRES_USER=mastodon |
|
|
|
|
- POSTGRES_PASSWORD=mastodon |
|
|
|
|
#- POSTGRES_DB=mastodon_production |
|
|
|
|
- POSTGRES_DB=mastodon_production |
|
|
|
|
env_file: |
|
|
|
|
- mastodon/env.production |
|
|
|
|
- ./env.production |
|
|
|
|
- ./mastodon/env.production |
|
|
|
|
|
|
|
|
|
mastodon-redis: |
|
|
|
|
image: redis:6-alpine |
|
|
|
@ -27,7 +29,8 @@ services: |
|
|
|
|
healthcheck: |
|
|
|
|
test: ['CMD', 'redis-cli', 'ping'] |
|
|
|
|
env_file: |
|
|
|
|
- mastodon/env.production |
|
|
|
|
- ./env.production |
|
|
|
|
- ./mastodon/env.production |
|
|
|
|
volumes: |
|
|
|
|
- ./data/mastodon/redis:/data |
|
|
|
|
|
|
|
|
@ -41,7 +44,8 @@ services: |
|
|
|
|
- "discovery.type=single-node" |
|
|
|
|
- "bootstrap.memory_lock=true" |
|
|
|
|
env_file: |
|
|
|
|
- mastodon/env.production |
|
|
|
|
- ./env.production |
|
|
|
|
- ./mastodon/env.production |
|
|
|
|
# networks: |
|
|
|
|
# - internal_network |
|
|
|
|
healthcheck: |
|
|
|
@ -78,7 +82,8 @@ services: |
|
|
|
|
- ./data/mastodon/system:/mastodon/public/system |
|
|
|
|
- ./mastodon/entrypoint.sh:/entrypoint.sh:ro |
|
|
|
|
env_file: |
|
|
|
|
- mastodon/env.production |
|
|
|
|
- ./env.production |
|
|
|
|
- ./mastodon/env.production |
|
|
|
|
environment: |
|
|
|
|
- WEB_DOMAIN=$MASTODON_HOSTNAME.$DOMAIN_NAME |
|
|
|
|
- LOCAL_DOMAIN=$DOMAIN_NAME |
|
|
|
@ -113,7 +118,8 @@ services: |
|
|
|
|
- SMTP_PASSWORD=$SMTP_PASSWORD |
|
|
|
|
- SMTP_FROM_ADDRESS=mastodon@$DOMAIN_NAME |
|
|
|
|
env_file: |
|
|
|
|
- mastodon/env.production |
|
|
|
|
- ./env.production |
|
|
|
|
- ./mastodon/env.production |
|
|
|
|
command: node ./streaming |
|
|
|
|
# networks: |
|
|
|
|
# - external_network |
|
|
|
@ -132,7 +138,8 @@ services: |
|
|
|
|
restart: always |
|
|
|
|
container_name: mastodon-sidekiq |
|
|
|
|
env_file: |
|
|
|
|
- mastodon/env.production |
|
|
|
|
- ./env.production |
|
|
|
|
- ./mastodon/env.production |
|
|
|
|
environment: |
|
|
|
|
- WEB_DOMAIN=$MASTODON_HOSTNAME.$DOMAIN_NAME |
|
|
|
|
- LOCAL_DOMAIN=$DOMAIN_NAME |
|
|
|
@ -186,11 +193,10 @@ services: |
|
|
|
|
- ./data/mastodon/system/accounts:/mastodon/system/accounts:ro |
|
|
|
|
|
|
|
|
|
# add the subdomain client secrets to the keycloak-setup volume |
|
|
|
|
keycloak-setup: |
|
|
|
|
env_file: |
|
|
|
|
- data/mastodon/secrets |
|
|
|
|
keycloak: |
|
|
|
|
volumes: |
|
|
|
|
- ./mastodon/keycloak.sh:/keycloak-setup/mastodon.sh:ro |
|
|
|
|
- ./data/mastodon/secrets:/run/secrets/mastodon:ro |
|
|
|
|
|
|
|
|
|
#networks: |
|
|
|
|
# external_network: |
|
|
|
|