Skip to content

Instantly share code, notes, and snippets.

@michimau
Created September 24, 2021 09:43
Show Gist options
  • Save michimau/2894e9cd3375fbf71619033abd893a71 to your computer and use it in GitHub Desktop.
Save michimau/2894e9cd3375fbf71619033abd893a71 to your computer and use it in GitHub Desktop.
docker-compose haproxy
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