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

72 lines
1.9 KiB
Plaintext
Raw Normal View History

2022-12-05 17:43:21 +01:00
version: "3"
2022-12-05 20:47:15 +01:00
2022-12-05 17:43:21 +01:00
services:
2022-12-05 20:47:15 +01:00
2024-01-02 21:39:17 +01:00
{% include 'templates/docker-service-redis.yml.j2' %}
2023-12-26 16:40:19 +01:00
2022-12-05 20:47:15 +01:00
env_file: .env
celeryworker:
2023-01-09 15:59:36 +01:00
restart: always
2022-12-05 20:47:15 +01:00
image: funkwhale/api:${FUNKWHALE_VERSION:-latest}
depends_on:
2024-01-02 21:39:17 +01:00
{% include 'templates/docker-container-depends-on.yml.j2' %}
2022-12-05 20:47:15 +01:00
- 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}"
2024-01-02 21:39:17 +01:00
{% include 'templates/docker-container-networks.yml.j2' %}
2022-12-05 20:47:15 +01:00
celerybeat:
2023-01-09 15:59:36 +01:00
restart: always
2022-12-05 20:47:15 +01:00
image: funkwhale/api:${FUNKWHALE_VERSION:-latest}
depends_on:
2024-01-02 21:39:17 +01:00
{% include 'templates/docker-container-depends-on.yml.j2' %}
2022-12-05 20:47:15 +01:00
- redis
env_file: .env
command: celery -A funkwhale_api.taskapp beat --pidfile= -l INFO
2024-01-02 21:39:17 +01:00
{% include 'templates/docker-container-networks.yml.j2' %}
2022-12-05 20:47:15 +01:00
api:
2023-01-09 15:59:36 +01:00
restart: always
2022-12-05 20:47:15 +01:00
image: funkwhale/api:${FUNKWHALE_VERSION:-latest}
depends_on:
2024-01-02 21:39:17 +01:00
{% include 'templates/docker-container-depends-on.yml.j2' %}
2022-12-05 20:47:15 +01:00
- redis
env_file: .env
volumes:
- "data:${MEDIA_ROOT}"
#- "${STATIC_ROOT}:${STATIC_ROOT}"
ports:
- "5000"
2024-01-02 21:39:17 +01:00
{% include 'templates/docker-container-networks.yml.j2' %}
2022-12-05 20:47:15 +01:00
front:
2023-01-09 15:59:36 +01:00
restart: always
2022-12-05 20:47:15 +01:00
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"
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
- "${FUNKWHALE_API_IP}:${FUNKWHALE_API_PORT}:80"
2024-01-02 21:39:17 +01:00
{% include 'templates/docker-container-networks.yml.j2' %}
2024-01-02 21:40:48 +01:00
{% include 'templates/docker-service-{{ database_type }}.yml.j2' %}
2024-01-02 21:39:17 +01:00
{% include 'templates/docker-compose-volumes.yml.j2' %}
2022-12-05 20:47:15 +01:00
data:
redis:
2024-01-02 21:39:17 +01:00
{% include 'templates/docker-compose-networks.yml.j2' %}