Skip to content

freaz/docker-gatsby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-gatsby

Docker Image to develop and server Gatsby sites.

Usage

To setup your Gatsby project using this Docker image you need to create:

  1. Dockerfile
    FROM freaz/gatsby:latest
  2. docker-compose.yaml - meant for running app on prduction
    version: '3'
    services:
      web:
        build: .
      ports:
        - 80:80
  3. develop.yaml - for local development
    version: '3'
    services:
      web:
        command: develop --host 0.0.0.0 --port 80
        volumes:
          - .:/www

Then running application ready for production with:

$ docker-compose up

and for development with:

$ docker-compose -f docker-compose.yaml -f develop.yaml up

About

Docker Image to develop and serve www.gatsbyjs.org sites

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages