Browse Source

Merge pull request #300 from ngineered/master

Adding a stanza to test the config file
Tianon Gravi 10 years ago
parent
commit
1741d2845d
1 changed files with 12 additions and 1 deletions
  1. 12 1
      haproxy/content.md

+ 12 - 1
haproxy/content.md

@@ -23,10 +23,21 @@ FROM haproxy:1.5
 COPY haproxy.cfg /usr/local/etc/haproxy/haproxy.cfg
 ```
 
-Build and run:
+## Build the container
 
 ```console
 $ docker build -t my-haproxy .
+```
+
+## Test the configuration file
+
+```console
+$ docker run -it --rm --name haproxy-syntax-check haproxy:1.5 haproxy -c -f /usr/local/etc/haproxy/haproxy.cfg
+```
+
+## Run the container
+
+```console
 $ docker run -d --name my-running-haproxy my-haproxy
 ```