Skip to content
Snippets Groups Projects
Commit 13749670 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Moved docker compose file to dev.yml and version '2'

parent c8575691
Branches
No related tags found
No related merge requests found
dev.yml 0 → 100644
version: '2'
services:
postgres:
env_file: .env
image: postgres
volumes:
# If you are using boot2docker, postgres data has to live in the VM for now until #581 is fixed
# for more info see here: https://github.com/boot2docker/boot2docker/issues/581
- /data/dev/funkwhale_api/postgres:/var/lib/postgresql/data
redis:
env_file: .env
image: redis:3.0
celeryworker:
env_file: .env
build:
context: .
dockerfile: docker/Dockerfile.local
links:
- postgres
- redis
command: python manage.py celery worker
environment:
- C_FORCE_ROOT=true
volumes:
- .:/app
django:
env_file: .env
build:
context: .
dockerfile: docker/Dockerfile.local
command: python /app/manage.py runserver 0.0.0.0:12081
volumes:
- .:/app
ports:
- "12081"
environment:
- USE_SAMPLE_TRACK=true
links:
- postgres
- redis
- celeryworker
nginx:
env_file: .env
build: ./compose/nginx
links:
- django
volumes:
- ./funkwhale_api/media:/staticfiles/media
ports:
- "0.0.0.0:6001:80"
postgres:
image: postgres
volumes:
# If you are using boot2docker, postgres data has to live in the VM for now until #581 is fixed
# for more info see here: https://github.com/boot2docker/boot2docker/issues/581
- /data/dev/funkwhale_api/postgres:/var/lib/postgresql/data
redis:
image: redis:3.0
celeryworker:
dockerfile: docker/Dockerfile.local
build: .
links:
- postgres
- redis
command: python manage.py celery worker
environment:
- C_FORCE_ROOT=true
volumes:
- .:/app
django:
dockerfile: docker/Dockerfile.local
build: .
command: python /app/manage.py runserver 0.0.0.0:12081
volumes:
- .:/app
ports:
- "12081"
environment:
- USE_SAMPLE_TRACK=true
links:
- postgres
- redis
- celeryworker
nginx:
build: ./compose/nginx
links:
- django
volumes:
- ./funkwhale_api/media:/staticfiles/media
ports:
- "0.0.0.0:6001:80"
YOUTUBE_API_KEY= YOUTUBE_API_KEY=
API_AUTHENTICATION_REQUIRED=False API_AUTHENTICATION_REQUIRED=False
USE_SAMPLE_TRACK=false
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment