Skip to content

Latest commit

 

History

History
34 lines (30 loc) · 794 Bytes

README.md

File metadata and controls

34 lines (30 loc) · 794 Bytes

Docker Static Nginx

docker-compose.yml example :

nginx-cv:
    build: ./static-nginx
    restart: unless-stopped
    volumes:
        - ./static-nginx/src:/var/www/html
    environment:
        - VIRTUAL_HOST=www.website.com, website.com
        - VIRTUAL_PORT=8080
        - LETSENCRYPT_HOST=www.website.com, website.com
        - [email protected]
    ports:
        - 8080:8080

Environment variables are set to use jwilder/nginx-proxy along with Let's Encrypt.

It can be easily linked to a hugo website:

hugo:
    image: jojomi/hugo:latest
    restart: unless-stopped
    volumes:
        - ./hugo/src:/src
        - ./static-nginx/src:/output
    environment:
        - HUGO_WATCH=true
        - HUGO_THEME=ananke
        - HUGO_BASEURL=website.com