dev.yml 1.17 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 28 29 30 31 32 33 34 35 36 37 38
version: '2'

services:

  front:
    build:
      dockerfile: docker/Dockerfile.dev
      context: ./front
    env_file: .env.dev
    environment:
      - "HOST=0.0.0.0"
    ports:
      - "8080:8080"
    volumes:
      - './front:/app'
      - /app/node_modules

  postgres:
    env_file: .env.dev
    image: postgres

  redis:
    env_file: .env.dev
    image: redis:3.0

  celeryworker:
    env_file: .env.dev
    build:
      context: ./api
      dockerfile: docker/Dockerfile.local
    links:
     - postgres
     - redis
    command: python manage.py celery worker
    environment:
        - C_FORCE_ROOT=true
    volumes:
      - ./api:/app
Agate's avatar
Agate committed
39
      - ./data/music:/music
40 41 42 43
  api:
    env_file: .env.dev
    build:
      context: ./api
Agate's avatar
Agate committed
44
      dockerfile: docker/Dockerfile.test
45 46 47
    command: python /app/manage.py runserver 0.0.0.0:12081
    volumes:
      - ./api:/app
Agate's avatar
Agate committed
48
      - ./data/music:/music
49
    ports:
Agate's avatar
Agate committed
50
      - "12081:12081"
51 52 53 54 55
    links:
      - postgres
      - redis
      - celeryworker

56 57 58 59 60 61 62 63 64
  # nginx:
  #   env_file: .env.dev
  #   build: ./api/compose/nginx
  #   links:
  #     - api
  #   volumes:
  #     - ./api/funkwhale_api/media:/staticfiles/media
  #   ports:
  #     - "0.0.0.0:6001:80"