##// END OF EJS Templates
Añadí estáticos para que funcione gunicorn, no funcionó
Añadí estáticos para que funcione gunicorn, no funcionó

File last commit:

r363:be6e17b1afd8
r363:be6e17b1afd8
Show More
docker-compose.yml
70 lines | 1.4 KiB | text/x-yaml | YamlLexer
version: '2'
services:
# Django app
web:
container_name: 'radarsys'
build: .
restart: always
image: radarsys
#command: gunicorn radarsys.wsgi:application -w 2 -b :8000
command: python manage.py runserver 0.0.0.0:8030
#ports:
# - 8000:8000
ports:
- 8030:8030
env_file: .env
links:
# - redis
- postgres
volumes:
- './:/radarsys'
- '${DOCKER_DATA}/static:/radarsys/static'
depends_on:
# - redis
- postgres
# redis:
# container_name: 'radarsys-redis'
# image: 'redis:3.2-alpine'
# volumes:
# - '${DOCKER_DATA}/redis:/data'
# celery_worker:
# container_name: 'radarsys-celery'
# image: radarsys
# env_file: .env
# command: celery -A radarsys worker -l info
# volumes_from:
# - web
# depends_on:
# - web
# PostgreSQL
postgres:
container_name: 'radarsys-postgres'
build: ./postgres/
volumes:
- ./postgres/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
- pgdata:/var/lib/postgresql/data
# ports:
# - 5432:5432
env_file: .env
# Web Server
# nginx:
# container_name: 'radarsys-nginx'
# restart: always
# build: ./nginx/
# ports:
# - '8030:8030'
# volumes_from:
# - web
# links:
# - web:web
# depends_on:
# - web
volumes:
pgdata:
driver: local