mirror of
https://github.com/fergalmoran/dss.docker.git
synced 2026-01-08 17:46:31 +00:00
46 lines
789 B
YAML
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"
|