-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
49 lines (49 loc) · 1.47 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
# 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
version: "3.4"
services:
db-postgres:
container_name: seed_postgres
volumes:
- ref_seed_pgdata:/var/lib/postgresql/data
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
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}