-
Notifications
You must be signed in to change notification settings - Fork 54
/
docker-compose.dev.yml
51 lines (51 loc) · 1.52 KB
/
docker-compose.dev.yml
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
39
40
41
42
43
44
45
46
47
48
49
50
51
---
# Docker-compose setup for local development
#
# Configurable Values:
# SEED_DB_VOLUME - name of docker volume to mount for Postgres
# SEED_MEDIA_VOLUME - name of docker volume to mount for the media directory
#
# Usage:
# docker-compose -f docker-compose.yml -f docker-compose.dev.yml up
services:
db-postgres:
container_name: seed_postgres
volumes:
- ref_seed_pgdata:/var/lib/postgresql/data
- ./share:/share
web:
container_name: seed_web
image: seedplatform/seed:develop
build:
context: .
dockerfile: Dockerfile-dev
command: python3 manage.py runserver --settings=config.settings.docker_dev 0.0.0.0:80
environment:
- DJANGO_SETTINGS_MODULE=config.settings.docker_dev
- DJANGO_LOG_LEVEL
- EEEJ_LOAD_SMALL_TEST_DATASET=True
volumes:
- ref_seed_media:/seed/media
- ./seed/:/seed/seed/
- ./config:/seed/config/
web-celery:
container_name: seed_celery
image: seedplatform/seed:develop
build:
context: .
dockerfile: Dockerfile-dev
command: watchmedo auto-restart --directory=/seed/seed/ --pattern=*.py --recursive -- /seed/docker/start_celery_docker.sh
environment:
- DJANGO_SETTINGS_MODULE=config.settings.docker_dev
- DJANGO_LOG_LEVEL
volumes:
- ref_seed_media:/seed/media
- ./seed:/seed/seed
- ./config:/seed/config/
volumes:
ref_seed_pgdata:
external: true
name: ${SEED_DB_VOLUME:-seed_pgdata}
ref_seed_media:
external: true
name: ${SEED_MEDIA_VOLUME:-seed_media}