You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
935 B

version: "2"
services:
nginx:
build:
context: docker/nginx
image: bcbc/nginx:production
ports:
- "80:80"
- "443:443"
volumes_from:
- workstand:ro
volumes:
- certs:/etc/letsencrypt
restart: always
networks:
- default
links:
- workstand
workstand:
build:
context: .
dockerfile: Dockerfile
image: bcbc/workstand:production
env_file:
- workstand.env
command: 'bash -c "PYTHONUNBUFFERED=TRUE python manage.py migrate --no-input && python manage.py collectstatic --no-input && python manage.py rebuild_index --noinput && gunicorn --log-file=- -b 0.0.0.0:8000 bikeshop.wsgi:application"'
environment:
- DJANGO_SETTINGS_MODULE=bikeshop.settings.production
volumes:
- static:/code/static
redis:
restart: always
db:
restart: always
volumes:
static:
external: false
certs:
external: false