Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@seanhamlin
Created June 23, 2022 01:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seanhamlin/f20279968ce0751b0e9d386da3ce9c70 to your computer and use it in GitHub Desktop.
Save seanhamlin/f20279968ce0751b0e9d386da3ce9c70 to your computer and use it in GitHub Desktop.
Static Nginx container
docker-compose-yaml: docker-compose.yml
environments:
production:
routes:
- nginx:
- "www.example.com"
version: '2'
services:
nginx:
networks:
- amazeeio-network
- default
build:
context: .
dockerfile: Dockerfile.nginx
labels:
lagoon.type: nginx
volumes:
- .:/app:delegated
ports:
- "8080"
networks:
amazeeio-network:
external: true
FROM uselagoon/nginx:latest
# Add in the static files.
COPY static /app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment