31 lines
791 B
YAML
31 lines
791 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
# HTTP 전용 Nginx (SSL 인증용)
|
|
nginx-http:
|
|
image: nginx:alpine
|
|
container_name: home-service-http-only
|
|
restart: unless-stopped
|
|
ports:
|
|
- "80:80"
|
|
volumes:
|
|
- ./nginx-http-only.conf:/etc/nginx/nginx.conf:ro
|
|
- ./certbot-webroot:/var/www/certbot:ro
|
|
networks:
|
|
- home-service-proxy-net
|
|
|
|
# Certbot (Let's Encrypt)
|
|
certbot:
|
|
image: certbot/certbot
|
|
container_name: home-service-certbot-only
|
|
volumes:
|
|
- ./ssl-certs:/etc/letsencrypt
|
|
- ./certbot-webroot:/var/www/certbot
|
|
command: certonly --webroot --webroot-path=/var/www/certbot --email ahn@hyungi.net --agree-tos --no-eff-email -d jellyfin.hyungi.net
|
|
profiles:
|
|
- ssl-setup
|
|
|
|
networks:
|
|
home-service-proxy-net:
|
|
driver: bridge
|