41 lines
769 B
YAML
41 lines
769 B
YAML
services:
|
|
apache:
|
|
image: httpd:2.4-trixie
|
|
container_name: reverse-proxy
|
|
ports:
|
|
- 80:80
|
|
- 443:443
|
|
volumes:
|
|
- ./httpd.conf:/usr/local/apache2/conf/httpd.conf
|
|
- letsencrypt:/etc/letsencrypt
|
|
- certbot-www:/var/www/certbot
|
|
networks:
|
|
- komodo
|
|
- production
|
|
- development
|
|
certbot:
|
|
image: certbot/certbot
|
|
container_name: certbot
|
|
volumes:
|
|
- ./httpd.conf:/tmp/httpd.conf
|
|
- letsencrypt:/etc/letsencrypt
|
|
- certbot-www:/var/www/certbot
|
|
entrypoint: >
|
|
sh -c "while true; do
|
|
certbot renew;
|
|
sleep 12h;
|
|
done"
|
|
|
|
volumes:
|
|
letsencrypt:
|
|
certbot-www:
|
|
|
|
networks:
|
|
production:
|
|
external: true
|
|
development:
|
|
external: true
|
|
komodo:
|
|
external: true
|
|
|