version: "3" services: web_recipes: image: vabene1111/recipes env_file: - .env - .secret.env volumes: - staticfiles:/opt/recipes/staticfiles - nginx_config:/opt/recipes/nginx/conf.d - mediafiles:/opt/recipes/mediafiles nginx_recipes: image: nginx:mainline-alpine restart: always ports: - 3017:80 env_file: - .env - .secret.env depends_on: - web_recipes volumes: - nginx_config:/etc/nginx/conf.d:ro - staticfiles:/static - mediafiles:/media volumes: nginx_config: staticfiles: mediafiles: