Skip to content

Commit

Permalink
Mount haproxy.cfg as a volume
Browse files Browse the repository at this point in the history
The HAProxy-Dockerfile is not necessary because it only adds a configuration file
  • Loading branch information
AEtherC0r3 committed Apr 11, 2017
1 parent d570e89 commit dc94fda
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 24 deletions.
20 changes: 0 additions & 20 deletions HAProxy-Dockerfile

This file was deleted.

8 changes: 4 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ services:
restart: always

proxy:
build:
context: .
dockerfile: HAProxy-Dockerfile
image: haproxy:1.6-alpine
links:
- website
- redirector
Expand All @@ -39,6 +37,8 @@ services:
ports:
- "80:80"
- "443:443"
volumes:
- ./haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg:ro
restart: always

ministerin:
Expand All @@ -47,7 +47,7 @@ services:
dockerfile: MinisterIN-Dockerfile
ports:
- "7777:7777"
depends_on:
depends_on:
- mqtt
restart: always

Expand Down

0 comments on commit dc94fda

Please sign in to comment.