31 lines
893 B
YAML
31 lines
893 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
|
|
- ./sites/default_ssl.conf:/etc/nginx/conf.d/default_ssl.conf:ro
|
|
- ./sites/www.vostan.org:/etc/nginx/conf.d/www.vostan.org.conf:ro
|
|
- ./sites/drive.vostan.org:/etc/nginx/conf.d/drive.vostan.org.conf: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
|