Files
dss.docker/docker-compose.yml
2015-07-26 00:50:13 +01:00

46 lines
789 B
YAML

api:
restart: always
build: ./dss.api
ports:
- "8000:8000"
links:
- "postgres:postgres"
- "redis:redis"
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"