2022-11-15 11:56:48 +01:00
|
|
|
services:
|
2023-12-26 16:40:19 +01:00
|
|
|
|
2024-01-19 15:12:18 +01:00
|
|
|
{% include 'templates/docker/services/redis.yml.j2' %}
|
2023-12-26 16:40:19 +01:00
|
|
|
|
2024-01-19 15:12:18 +01:00
|
|
|
{% include 'templates/docker/services/' + database_type + '.yml.j2' %}
|
2023-12-26 16:40:19 +01:00
|
|
|
|
2022-11-15 11:56:48 +01:00
|
|
|
web:
|
2024-01-22 18:53:35 +01:00
|
|
|
image: ghcr.io/mastodon/mastodon:{{mastodon_version}}
|
2024-01-12 20:57:58 +01:00
|
|
|
restart: {{docker_restart_policy}}
|
2022-11-15 11:56:48 +01:00
|
|
|
env_file: .env.production
|
|
|
|
command: bash -c "rm -f /mastodon/tmp/pids/server.pid; bundle exec rails s -p 3000"
|
|
|
|
healthcheck:
|
|
|
|
test: ['CMD-SHELL', 'wget -q --spider --proxy=off localhost:3000/health || exit 1']
|
|
|
|
ports:
|
|
|
|
- "127.0.0.1:{{http_port}}:3000"
|
2024-01-19 15:12:18 +01:00
|
|
|
{% include 'templates/docker/container/depends-on-database-redis.yml.j2' %}
|
2022-11-15 11:56:48 +01:00
|
|
|
volumes:
|
|
|
|
- data:/mastodon/public/system
|
2022-11-15 21:43:05 +01:00
|
|
|
logging:
|
|
|
|
driver: journald
|
2024-01-19 15:12:18 +01:00
|
|
|
{% include 'templates/docker/container/networks.yml.j2' %}
|
2024-01-02 21:13:34 +01:00
|
|
|
|
2022-11-15 11:56:48 +01:00
|
|
|
streaming:
|
2024-01-22 18:53:35 +01:00
|
|
|
image: ghcr.io/mastodon/mastodon:{{mastodon_version}}
|
2024-01-12 20:57:58 +01:00
|
|
|
restart: {{docker_restart_policy}}
|
2022-11-15 11:56:48 +01:00
|
|
|
env_file: .env.production
|
|
|
|
command: node ./streaming
|
|
|
|
healthcheck:
|
|
|
|
test: ['CMD-SHELL', 'wget -q --spider --proxy=off localhost:4000/api/v1/streaming/health || exit 1']
|
|
|
|
ports:
|
|
|
|
- "127.0.0.1:{{stream_port}}:4000"
|
2024-01-19 15:12:18 +01:00
|
|
|
{% include 'templates/docker/container/depends-on-database-redis.yml.j2' %}
|
2022-11-15 21:43:05 +01:00
|
|
|
logging:
|
|
|
|
driver: journald
|
2024-01-19 15:12:18 +01:00
|
|
|
{% include 'templates/docker/container/networks.yml.j2' %}
|
2024-01-02 21:13:34 +01:00
|
|
|
|
2022-11-15 11:56:48 +01:00
|
|
|
sidekiq:
|
2024-01-22 18:53:35 +01:00
|
|
|
image: ghcr.io/mastodon/mastodon:{{mastodon_version}}
|
2024-01-12 20:57:58 +01:00
|
|
|
restart: {{docker_restart_policy}}
|
2022-11-15 11:56:48 +01:00
|
|
|
env_file: .env.production
|
|
|
|
command: bundle exec sidekiq
|
2024-01-19 15:12:18 +01:00
|
|
|
{% include 'templates/docker/container/depends-on-database-redis.yml.j2' %}
|
2022-11-15 11:56:48 +01:00
|
|
|
volumes:
|
|
|
|
- data:/mastodon/public/system
|
|
|
|
healthcheck:
|
|
|
|
test: ['CMD-SHELL', "ps aux | grep '[s]idekiq\ 6' || false"]
|
2022-11-15 21:43:05 +01:00
|
|
|
logging:
|
|
|
|
driver: journald
|
2024-01-19 15:12:18 +01:00
|
|
|
{% include 'templates/docker/container/networks.yml.j2' %}
|
2023-12-31 11:14:18 +01:00
|
|
|
|
2024-01-19 15:12:18 +01:00
|
|
|
{% include 'templates/docker/compose/volumes.yml.j2' %}
|
2022-11-15 11:56:48 +01:00
|
|
|
redis:
|
|
|
|
data:
|
2024-01-02 21:13:34 +01:00
|
|
|
|
2024-01-19 15:12:18 +01:00
|
|
|
{% include 'templates/docker/compose/networks.yml.j2' %}
|