Added some other docker-related variables

master
Meliurwen 4 years ago
parent 2bc0b52fa6
commit b90b4529d0
Signed by: meliurwen
GPG Key ID: 818A8B35E9F1CE10
  1. 9
      .env.example
  2. 9
      docker-compose.yml

@ -36,6 +36,8 @@ WB_CONTAINER_NAME=
WB_RESTART= WB_RESTART=
# celeryworker (optional) # celeryworker (optional)
CW_CONTAINER_NAME=
CW_RESTART=
# Number of worker processes to execute. Defaults to 0, in which case it uses your number of CPUs # Number of worker processes to execute. Defaults to 0, in which case it uses your number of CPUs
# Celery workers handle background tasks (such file imports or federation # Celery workers handle background tasks (such file imports or federation
# messaging). The more processes a worker gets, the more tasks # messaging). The more processes a worker gets, the more tasks
@ -43,3 +45,10 @@ WB_RESTART=
# a bigger memory footprint. # a bigger memory footprint.
CELERYD_CONCURRENCY= CELERYD_CONCURRENCY=
# celerybeat (optional)
CB_CONTAINER_NAME=
CB_RESTART=
# api (optional)
AP_CONTAINER_NAME=
AP_RESTART=

@ -22,8 +22,9 @@ services:
- 6379 - 6379
celeryworker: celeryworker:
restart: unless-stopped
image: funkwhale/funkwhale:${FUNKWHALE_VERSION:-latest} image: funkwhale/funkwhale:${FUNKWHALE_VERSION:-latest}
container_name: ${CW_CONTAINER_NAME:-funkwhale-celeryworker}
restart: ${CW_RESTART:-unless-stopped}
depends_on: depends_on:
- postgres - postgres
- redis - redis
@ -48,7 +49,8 @@ services:
celerybeat: celerybeat:
image: funkwhale/funkwhale:${FUNKWHALE_VERSION:-latest} image: funkwhale/funkwhale:${FUNKWHALE_VERSION:-latest}
restart: unless-stopped container_name: ${CB_CONTAINER_NAME:-funkwhale-celerybeat}
restart: ${CB_RESTART:-unless-stopped}
depends_on: depends_on:
- postgres - postgres
- redis - redis
@ -61,7 +63,8 @@ services:
api: api:
image: funkwhale/funkwhale:${FUNKWHALE_VERSION:-latest} image: funkwhale/funkwhale:${FUNKWHALE_VERSION:-latest}
restart: unless-stopped container_name: ${AP_CONTAINER_NAME:-funkwhale-api}
restart: ${AP_RESTART:-unless-stopped}
depends_on: depends_on:
- postgres - postgres
- redis - redis

Loading…
Cancel
Save