Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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