version: "3.8" # Deprecated services: demo: build: . restart: unless-stopped environment: DJANGO_SECRET_KEY: ${DJANGO_SECRET_KEY} volumes: - static_volume:/code/staticfiles - media_volume:/code/media networks: - hubstation nginx: image: nginx:alpine restart: unless-stopped depends_on: - demo volumes: - ./nginx.conf:/etc/nginx/conf.d/default.conf:ro - static_volume:/usr/share/nginx/html/static - media_volume:/usr/share/nginx/html/media networks: - your_network networks: your_network: external: true volumes: static_volume: media_volume: