2022-12-05 17:43:21 +01:00
|
|
|
services:
|
2025-02-11 04:49:21 +01:00
|
|
|
# @todo Test which containers can be removed crom cental_database networks
|
2025-02-04 18:14:37 +01:00
|
|
|
{% include 'roles/docker-central-database/templates/services/' + database_type + '.yml.j2' %}
|
2025-01-28 16:54:39 +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
|
|
|
|
2022-12-05 20:47:15 +01:00
|
|
|
celeryworker:
|
2025-01-28 16:54:39 +01:00
|
|
|
# Celery workers handle background tasks (such file imports or federation
|
|
|
|
# messaging). The more processes a worker gets, the more tasks
|
|
|
|
# can be processed in parallel. However, more processes also means
|
|
|
|
# a bigger memory footprint.
|
|
|
|
# By default, a worker will span a number of process equal to your number
|
|
|
|
# of CPUs. You can adjust this, by explicitly setting the --concurrency
|
|
|
|
# flag:
|
|
|
|
# celery -A funkwhale_api.taskapp worker -l INFO --concurrency=4
|
2025-02-04 22:37:07 +01:00
|
|
|
{% include 'roles/docker-compose/templates/services/base.yml.j2' %}
|
2025-02-04 23:49:38 +01:00
|
|
|
image: funkwhale/api:{{applications.funkwhale.version}}
|
|
|
|
command: celery -A funkwhale_api.taskapp worker -l INFO --concurrency={{celeryd_concurrency}}
|
2022-12-05 20:47:15 +01:00
|
|
|
environment:
|
|
|
|
- C_FORCE_ROOT=true
|
|
|
|
volumes:
|
2025-02-04 23:49:38 +01:00
|
|
|
- "data:{{media_root}}"
|
|
|
|
- "music:{{music_directory_path}}:ro"
|
2024-01-19 15:12:18 +01:00
|
|
|
{% include 'templates/docker/container/depends-on-database-redis.yml.j2' %}
|
|
|
|
{% include 'templates/docker/container/networks.yml.j2' %}
|
2024-01-02 21:13:34 +01:00
|
|
|
|
2022-12-05 20:47:15 +01:00
|
|
|
celerybeat:
|
2025-02-04 22:37:07 +01:00
|
|
|
{% include 'roles/docker-compose/templates/services/base.yml.j2' %}
|
2025-02-04 23:49:38 +01:00
|
|
|
image: funkwhale/api:{{applications.funkwhale.version}}
|
2022-12-05 20:47:15 +01:00
|
|
|
command: celery -A funkwhale_api.taskapp beat --pidfile= -l INFO
|
2024-01-19 15:12:18 +01:00
|
|
|
{% include 'templates/docker/container/depends-on-database-redis.yml.j2' %}
|
|
|
|
{% include 'templates/docker/container/networks.yml.j2' %}
|
2022-12-05 20:47:15 +01:00
|
|
|
|
|
|
|
api:
|
2025-02-04 22:37:07 +01:00
|
|
|
{% include 'roles/docker-compose/templates/services/base.yml.j2' %}
|
2025-02-04 23:49:38 +01:00
|
|
|
image: funkwhale/api:{{applications.funkwhale.version}}
|
2022-12-05 20:47:15 +01:00
|
|
|
volumes:
|
2025-02-04 23:49:38 +01:00
|
|
|
- "music:{{music_directory_path}}:ro"
|
|
|
|
- "data:{{media_root}}"
|
|
|
|
- "static_root:{{static_root}}"
|
2022-12-05 20:47:15 +01:00
|
|
|
ports:
|
2025-02-12 13:36:29 +01:00
|
|
|
- "5000" # Exposes API just in local docker network to be used by front container
|
2024-01-19 15:12:18 +01:00
|
|
|
{% include 'templates/docker/container/depends-on-database-redis.yml.j2' %}
|
|
|
|
{% include 'templates/docker/container/networks.yml.j2' %}
|
2022-12-05 20:47:15 +01:00
|
|
|
|
|
|
|
front:
|
2025-02-04 22:37:07 +01:00
|
|
|
{% include 'roles/docker-compose/templates/services/base.yml.j2' %}
|
2025-02-04 23:49:38 +01:00
|
|
|
image: funkwhale/front:{{applications.funkwhale.version}}
|
2022-12-05 20:47:15 +01:00
|
|
|
depends_on:
|
|
|
|
- api
|
|
|
|
environment:
|
|
|
|
# Override those variables in your .env file if needed
|
2025-02-04 23:49:38 +01:00
|
|
|
- "NGINX_MAX_BODY_SIZE=100M"
|
2022-12-05 20:47:15 +01:00
|
|
|
volumes:
|
2025-02-04 23:49:38 +01:00
|
|
|
- "data:{{media_root}}:ro"
|
|
|
|
#- "{{static_root}}:{{static_root}}:ro"
|
2022-12-05 17:43:21 +01:00
|
|
|
ports:
|
2022-12-05 20:47:15 +01:00
|
|
|
# override those variables in your .env file if needed
|
2025-02-21 05:20:18 +01:00
|
|
|
- "127.0.0.1:{{ports.localhost.http[application_id]}}:80"
|
2025-01-28 16:54:39 +01:00
|
|
|
|
|
|
|
typesense:
|
2025-02-04 22:37:07 +01:00
|
|
|
{% include 'roles/docker-compose/templates/services/base.yml.j2' %}
|
2025-01-28 16:54:39 +01:00
|
|
|
image: typesense/typesense:0.24.0
|
|
|
|
volumes:
|
|
|
|
- ./typesense/data:/data
|
|
|
|
command: --data-dir /data --enable-cors
|
|
|
|
profiles:
|
|
|
|
- typesense
|
2023-12-31 11:14:18 +01:00
|
|
|
|
2024-01-19 15:12:18 +01:00
|
|
|
{% include 'templates/docker/compose/volumes.yml.j2' %}
|
2022-12-05 20:47:15 +01:00
|
|
|
data:
|
2025-01-28 16:54:39 +01:00
|
|
|
static_root:
|
2022-12-05 20:47:15 +01:00
|
|
|
redis:
|
2025-01-28 16:54:39 +01:00
|
|
|
music:
|
2023-12-31 11:14:18 +01:00
|
|
|
|
2024-01-19 15:12:18 +01:00
|
|
|
{% include 'templates/docker/compose/networks.yml.j2' %}
|