computer-playbook/roles/docker-funkwhale/templates/docker-compose.yml.j2

73 lines
2.0 KiB
Django/Jinja

version: "3"
services:
{% include 'templates/docker-redis-service.yml.j2' %}
env_file: .env
celeryworker:
restart: always
image: funkwhale/api:${FUNKWHALE_VERSION:-latest}
depends_on:
{% include 'templates/docker-depends-on-central-database.yml.j2' %}
- redis
env_file: .env
command: celery -A funkwhale_api.taskapp worker -l INFO --concurrency=${CELERYD_CONCURRENCY-0}
environment:
- C_FORCE_ROOT=true
volumes:
- "data:${MEDIA_ROOT}"
{% include 'templates/docker-networks-for-container.yml.j2' %}
celerybeat:
restart: always
image: funkwhale/api:${FUNKWHALE_VERSION:-latest}
depends_on:
{% include 'templates/docker-depends-on-central-database.yml.j2' %}
- redis
env_file: .env
command: celery -A funkwhale_api.taskapp beat --pidfile= -l INFO
{% include 'templates/docker-networks-for-container.yml.j2' %}
api:
restart: always
image: funkwhale/api:${FUNKWHALE_VERSION:-latest}
depends_on:
{% include 'templates/docker-depends-on-central-database.yml.j2' %}
- redis
env_file: .env
volumes:
- "data:${MEDIA_ROOT}"
#- "${STATIC_ROOT}:${STATIC_ROOT}"
ports:
- "5000"
{% include 'templates/docker-networks-for-container.yml.j2' %}
front:
restart: always
image: funkwhale/front:${FUNKWHALE_VERSION:-latest}
depends_on:
- api
env_file:
- .env
environment:
# Override those variables in your .env file if needed
- "NGINX_MAX_BODY_SIZE=${NGINX_MAX_BODY_SIZE-100M}"
volumes:
- "data:${MEDIA_ROOT}:ro"
#- "${STATIC_ROOT}:${STATIC_ROOT}:ro"
ports:
# override those variables in your .env file if needed
- "${FUNKWHALE_API_IP}:${FUNKWHALE_API_PORT}:80"
{% include 'templates/docker-networks-for-container.yml.j2' %}
{% include 'templates/docker-{{ database_type }}-service.yml.j2' %}
volumes:
data:
redis:
{% include 'templates/docker-database-volume.yml.j2' %}
{% include 'templates/docker-networks-for-role.yml.j2' %}