docker-compose.yml 1.24 KB
Newer Older
1
2
3
4
5
6
7
8
version: '3'

services:

  postgres:
    restart: unless-stopped
    env_file: .env
    image: postgres:9.4
9
10
    volumes:
      - ./data/postgres:/var/lib/postgresql/data
11
12
13
14
15
16

  redis:
    restart: unless-stopped
    env_file: .env
    image: redis:3
    volumes:
17
      - ./data/redis:/data
18
19
20
21
22

  celeryworker:
    restart: unless-stopped
    image: funkwhale/funkwhale:${FUNKWHALE_VERSION:-latest}
    env_file: .env
23
    command: celery -A funkwhale_api.taskapp worker -l INFO
24
25
26
27
28
29
    links:
      - postgres
      - redis
    environment:
      - C_FORCE_ROOT=true
    volumes:
30
      - ./data/music:/music:ro
31
      - ./data/media:/app/funkwhale_api/media
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46

  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
    volumes:
47
      - ./data/music:/music:ro
48
49
      - ./data/media:/app/funkwhale_api/media
      - ./data/static:/app/staticfiles
50
      - ./front/dist:/frontend
51
52
53
54
55
    ports:
      - "${FUNKWHALE_API_IP:-127.0.0.1}:${FUNKWHALE_API_PORT:-5000}:5000"
    links:
      - postgres
      - redis