Files
docker-www/docker-compose.yml
Vahagn Khachatryan 77eb5180e1 Add *.app.vostan.org servers.
Change configuration name. Now configuration name is the reversed site
name.
Add all those configuration to https certificate.
2025-05-21 23:33:17 +01:00

30 lines
810 B
YAML

version: "3"
services:
www:
image: nginx:stable-alpine
container_name: www
restart: always
# ports:
# - 80:80
# - 443:443
volumes:
- ./certbot/www/:/var/www/certbot/:ro
- ./certbot/conf/live/:/etc/nginx/ssl/live/:ro
- ./certbot/conf/archive/:/etc/nginx/ssl/archive/:ro
# - ./sites/default.conf:/etc/nginx/conf.d/default.conf:ro # In order to
# add new sites to cert bot uncomment this line and comment the line below
- ./sites/:/etc/nginx/conf.d/:ro
network_mode: host
# command: [nginx-debug, '-g', 'daemon off;']
certbot:
image: certbot/certbot:latest
container_name: certbot
volumes:
- ./certbot/www/:/var/www/certbot/:rw
- ./certbot/conf/:/etc/letsencrypt/:rw
# networks:
# lan:
# driver: host