Sign inSign up

roest/docker-coming-soon-generator

By roest

•Updated almost 2 years ago

Serves a "comming soon" page for you filled with content from your environment variables via docker

Image
Content management system
1

1M+

roest/docker-coming-soon-generator repository overview

⁠Docker coming-soon Generator

Serves a "comming soon" page for you filled with content from your environment variables.

I took the bootstrap4 comming soon⁠ template as default and wrote a docker deploy script with twig template compiler where you can pick and run a page within minutes.

Here is an example of the result:

bootstrap4-example

⁠Usage

Please set environment variable TEMPLATE to pick one of these avaliable templates. If you don't pick a template, bootstrap4 is default

TemplatePreviewDescription
bootstrap4
blankoutput variables one by one

You have the following environment variables which allow you to configure the coming soon page:

Variable nameDescriptionused in TemplatesExample
TITLEWebpage head title and headingbootstrap4, blankComing Soon!
SUBLINEThe sentence under the titlebootstrap4, blankWe're working hard to finish the development of this site. Our target launch date is <strong>January 2019</strong>!
MAIN_COLORMain color to be used in templatebootstrap4, blank#6c757d
VIDEO_URLInternal or external URL to the background videobootstrap4, blankmp4/bg.mp4
BACKGROUND_IMAGEImage to use as body backgroundbootstrap4, blanknone
FACEBOOK_URLFacebook URL to your pagebootstrap4, blankhttps://www.facebook.com/yourPage⁠
TWITTER_URLTwitter URL to your pagebootstrap4, blankhttps://www.twitter.com/yourPage⁠
GITHUB_URLGithub URL to your pagebootstrap4, blankhttps://www.github.com/yourPage⁠
HTML is allowed !

⁠what happen at Build ?

  1. Checkout missing templates with checkout.sh script into templates
  2. move template (name stored in env) TEMPLATE to root
  3. remove templates folder with unused templates
  4. write config file from env if file missing
  5. compile index.html.twig into index.html with config.json as variables

⁠FAQ

⁠How to change Video in bootstrap4 template?

Important: only mp4 possible ! Many ways to rome:

  1. mount volume into /usr/share/nginx/html/mp4 and put bg.mp4 into folder.
  2. enter external link to any mp4 video into VIDEO_URL env`

⁠Contributing

If you're able to add more templates or optimise anything you're welcome. New templates? Just check out or add them into templates folder, create index.html.twig file and keep records of used environment variables in `README.md

⁠kudos

by the way there is another comming soon for docker zedtux/docker-coming-soon⁠ - may this is working better for you?

Tag summary

Content type

Image

Digest

sha256:4ec19f7df…

Size

166.9 MB

Last updated

almost 2 years ago

docker pull roest/docker-coming-soon-generator