Skip to content

docker-tow/tow-nginx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tow-nginx

A sample Tow project, shows how to use Tow for configuration management inside docker containers.

Project contains a simple Dockerfile with nginx installation and bunch of files and templates to show how easier become working with dynamic configuration files.

Checkout more information about Tow at project homepage.

Build

To build simple docker image run

$ tow build -t tow-nginx

To build reconfigurable image add --tow-run parameter.

Run

If you didn't use --tow-run then just execute:

$ docker run -d -p 8080:80 tow-nginx
$ curl localhost:8080
<!DOCTYPE html>
<html>
<head>
  <title>Tow Demo Webpage</title>
</head>

<body>
  <h1>Tow Demo Webpage</h1>
  <p>This text from the CONTENT variable</p>
</body>

</html>

If you used --tow-run you can run image as in previous example, or redifene env variable which will affect attributes:

$ tow run -d -p 8080:80 tow-nginx
$ curl localhost:8080
<!DOCTYPE html>
<html>
<head>
  <title>Tow Demo Webpage</title>
</head>

<body>
  <h1>Tow Demo Webpage</h1>
  <p>Override default CONTENT</p>
</body>

</html>

About

A sample tow project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages