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.
 
 
 
 
 

34 lines
640 B

version: "2"
services:
nginx:
build:
context: docker/nginx
ports:
- "80:80"
links:
- workstand
volumes_from:
- workstand:ro
workstand:
build:
context: .
dockerfile: Dockerfile-prod
image: workstand:production
env_file:
- workstand.env
command: gunicorn --log-file=- -b 0.0.0.0:8000 bikeshop.wsgi:application
environment:
- DJANGO_SETTINGS_MODULE=bikeshop.settings.production
volumes:
- static:/code/static
depends_on:
- redis
- db
redis:
restart: always
db:
restart: always
volumes:
static:
external: false