Created
September 24, 2021 09:43
-
-
Save michimau/2894e9cd3375fbf71619033abd893a71 to your computer and use it in GitHub Desktop.
docker-compose haproxy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
apache: | |
image: httpd:latest | |
restart: always | |
environment: | |
SERVERADMIN: [email protected] | |
SERVERNAME: sdi.eea.europa.eu | |
ports: | |
- 81:80 | |
nginx: | |
image: nginx | |
restart: always | |
ports: | |
- 82:80 | |
haproxy: | |
image: haproxy:alpine | |
container_name: haproxy | |
restart: always | |
depends_on: | |
- apache | |
- nginx | |
ports: | |
- "80:80" | |
volumes: | |
- $PWD:/usr/local/etc/haproxy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment