Skip to content

Commit

Permalink
✨ Add sample Dockerfile for nginx setup
Browse files Browse the repository at this point in the history
Added a sample Dockerfile for setting up nginx server using envplate for
environment variable templating.
  • Loading branch information
enc committed May 2, 2024
1 parent 4f01864 commit be093af
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,18 @@ NotEscaped1=\db.example.com
Escaped2=\${BAR_DATABASE:-db2.example.com}
NotEscaped2=\\db2.example.com
```

### Sample docker file

```
FROM nginx:latest
MAINTAINER Albert van t Hart <avthart@gmail.com>
ADD https://github.com/kreuzwerker/envplate/releases/download/v0.0.7/ep-linux /bin/ep
RUN chmod +x /bin/ep
EXPOSE 80 443
CMD [ "/bin/ep", "-v", "/etc/nginx/*.conf", "--", "/usr/sbin/nginx", "-g", "daemon off;" ]
```
Source: https://github.com/avthart/docker-nginx-env

0 comments on commit be093af

Please sign in to comment.