mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-04-25 03:34:08 +00:00
28 lines
885 B
YAML
28 lines
885 B
YAML
services:
|
|
nginx:
|
|
image: nginx:1.25.2
|
|
ports:
|
|
- "80:80"
|
|
- "443:443"
|
|
networks:
|
|
- main
|
|
environment:
|
|
- DOMAIN=${DOMAIN}
|
|
volumes:
|
|
- ./nginx/locations:/etc/nginx/conf.d/locations
|
|
- ./nginx/server_config:/etc/nginx/conf.d/server_config
|
|
- ./nginx/server_name:/etc/nginx/conf.d/server_name
|
|
- ./nginx/ssl_bootstrap:/etc/nginx/templates/default.conf.template
|
|
- ./certbot/conf:/etc/nginx/ssl
|
|
- ./certbot/data:/var/www/certbot
|
|
certbot:
|
|
image: certbot/certbot:latest
|
|
command: certonly --webroot --webroot-path=/var/www/certbot --keep-until-expiring --email ${EMAIL} --agree-tos --no-eff-email -d ${DOMAIN} -d www.${DOMAIN}
|
|
depends_on:
|
|
- nginx
|
|
volumes:
|
|
- ./certbot/conf:/etc/letsencrypt
|
|
- ./certbot/logs:/var/log/letsencrypt
|
|
- ./certbot/data:/var/www/certbot
|
|
networks:
|
|
main:
|