Skip to content

PokePango/docker-static-nginx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Docker build to create a static nginx webserver

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published