docker-compose.yml 1.2 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
version: '3'

services:

  postgres:
    restart: unless-stopped
    env_file: .env
    image: postgres:9.4

  redis:
    restart: unless-stopped
    env_file: .env
    image: redis:3
    volumes:
      - ./data:/data

  celeryworker:
    restart: unless-stopped
    image: funkwhale/funkwhale:${FUNKWHALE_VERSION:-latest}
    env_file: .env
    command: python manage.py celery worker
    links:
      - postgres
      - redis
    environment:
      - C_FORCE_ROOT=true
    volumes:
28
29
      - ./data/music:/music:ro
      - ./api/media:/app/funkwhale_api/media
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45

  celerybeat:
    restart: unless-stopped
    image: funkwhale/funkwhale:${FUNKWHALE_VERSION:-latest}
    env_file: .env
    command: celery -A funkwhale_api.taskapp beat -l INFO
    links:
      - postgres
      - redis

  api:
    restart: unless-stopped
    image: funkwhale/funkwhale:${FUNKWHALE_VERSION:-latest}
    env_file: .env
    command: ./compose/django/gunicorn.sh
    volumes:
46
      - ./data/music:/music:ro
47
48
      - ./data/media:/app/funkwhale_api/media
      - ./data/static:/app/staticfiles
49
      - ./front/dist:/frontend
50
51
52
53
54
    ports:
      - "${FUNKWHALE_API_IP:-127.0.0.1}:${FUNKWHALE_API_PORT:-5000}:5000"
    links:
      - postgres
      - redis