web: build: . dockerfile: .dockerfile command: gunicorn publichealth.wsgi:application -b 0.0.0.0:5000 -w 5 --log-file=- volumes: - ./:/usr/src/app - /var/log/publichealth:/var/log/publichealth links: - redis - postgres - elasticsearch ports: - "5000:5000" environment: - SECRET_KEY=${SECRET_KEY} - ALLOWED_HOSTS=${ALLOWED_HOSTS} - DJANGO_SETTINGS_MODULE=${DJANGO_SETTINGS_MODULE} - MAILGUN_KEY=${MAILGUN_KEY} - MAILGUN_FROM=${MAILGUN_FROM} - MAILGUN_DOMAIN=${MAILGUN_DOMAIN} - DATABASE_URL=postgres://postgres:@postgres:5432/postgres - ELASTICSEARCH_URL=http://elasticsearch:9200 - REDIS_URL=redis://redis:6379 - LOG_DIR=/var/log/publichealth redis: image: redis ports: - "6379:6379" postgres: image: postgres ports: - "5432:5432" elasticsearch: image: orchardup/elasticsearch ports: - "9200:9200"