--- services: web: command: gunicorn website.wsgi:application restart: unless-stopped environment: ALLOWED_HOSTS: ${NGINX_HOSTNAME} DJANGO_SETTINGS_MODULE: ${DJANGO_SETTINGS_MODULE} env_file: - path: .env required: true db: restart: unless-stopped env_file: - path: .env required: true adminer: restart: unless-stopped proxy: restart: unless-stopped ports: [80:80, 443:443] environment: - NGINX_HOSTNAME=${NGINX_HOSTNAME} - NGINX_PORT=80 - NGINX_SSL_PORT=443