# container with Django web server
web:
restart: always
build: . # build using default Dockerfile
command: bash -c "cd /opt/suap && python manage.py collectstatic --noinput && python manage.py runserver 0.0.0.0:8000"
ports:
- "8000:8000"
volumes:
- .:/opt/suap
links:
- redis:redis
# - db_dev:db_dev
#
# db_dev:
# restart: always
# image: postgres:9.4
# ports:
# - "5433:5433"
# volumes:
# - /etc/postgresql/9.4/main/:/var/lib/postgres/data
redis:
restart: always
image: redis:latest
ports:
- "6379:6379"
volumes:
- redisdata:/data