my-homelab-configs/bootstrap/edge/templates/docker-compose.yml.tftpl

56 lines
1.3 KiB
Plaintext

services:
nginx-dev:
image: nginx:latest
container_name: nginx-dev
restart: unless-stopped
depends_on:
- haproxy-dev
ports:
- "80:80"
- "443:443"
volumes:
- ./config_files/default.conf:/etc/nginx/conf.d/default.conf:ro
- ./certs:/etc/nginx/certs:ro
- ./certbot/www:/var/www/certbot:ro
- nginx_cache:/var/cache/nginx
- nginx_dynamic_cache:/var/cache/nginx_dynamic
haproxy-dev:
image: haproxy:alpine
container_name: haproxy-dev
restart: unless-stopped
depends_on:
- varnish-dev
- squid-dev
ports:
- "9000:9000"
- "8404:8404"
volumes:
- ./config_files/haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg:ro
varnish-dev:
image: varnish:fresh-alpine
container_name: varnish-dev
restart: unless-stopped
ports:
- "6081:80"
volumes:
- ./config_files/default.vcl:/etc/varnish/default.vcl:ro
squid-dev:
image: ubuntu/squid:latest
container_name: squid-dev
restart: unless-stopped
ports:
- "3128:3128"
volumes:
- ./config_files/squid.conf:/etc/squid/squid.conf:ro
- squid_cache:/var/spool/squid
- squid_logs:/var/log/squid
volumes:
nginx_cache:
nginx_dynamic_cache:
squid_cache:
squid_logs: