Files
dss.docker/docker-compose.yml
Fergal Moran 9599e767d0 Added nginx
2015-07-24 23:23:30 +01:00

45 lines
763 B
YAML

api:
restart: always
build: ./dss.api
ports:
- "8000:8000"
links:
- postgres:postgres
env_file: .env
#command: /usr/local/bin/gunicorn dss.wsgi:application -w 2 -b :8000
command: python manage.py runserver_plus 0.0.0.0:8000
postgres:
restart: always
image: postgres:latest
volumes_from:
- data
ports:
- "5432:5432"
data:
restart: no
image: postgres:latest
volumes:
- /var/lib/postgresql
command: /bin/true
web:
restart: always
build: ./dss.web
links:
- "redis:redis"
ports:
- "8080:8080"
redis:
image: redis
nginx:
restart: always
build: ./nginx/
ports:
- "81:81"
links:
- "api:api"
- "web:web"