testdrivenio/django-on-docker-letsencrypt

CN = Fake LE Intermediate X1

MacroSolutionsLTD opened this issue · 0 comments

Problem to Certification

services:
web:
build:
context: .
dockerfile: dockerfile.prod
image : .....amazonaws.com/django-ec2:web
command: gunicorn CMS.wsgi:application --bind 0.0.0.0:8000
volumes:
- static_volume:/home/CMS/web/staticfiles
- media_volume:/home/CMS/web/media
expose:
- 8000
env_file:
- ./.env.prod
nginx-proxy:
container_name: nginx-proxy
build: nginx
image: ......amazonaws.com/django-ec2:nginx-proxy
restart: always
ports:
- 443:443
- 80:80
volumes:
- static_volume:/home/CMS/web/staticfiles
- media_volume:/home/CMS/web/media
- certs:/etc/nginx/certs
- html:/usr/share/nginx/html
- vhost:/etc/nginx/vhost.d
- /var/run/docker.sock:/tmp/docker.sock:ro
depends_on:
- web
nginx-proxy-letsencrypt:
image: jrcs/letsencrypt-nginx-proxy-companion
env_file:
- .env.staging.proxy-companion
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- certs:/etc/nginx/certs
- html:/usr/share/nginx/html
- vhost:/etc/nginx/vhost.d
depends_on:
- nginx-proxy

volumes:
static_volume:
media_volume:
certs:
html:
vhost:

DEFAULT_EMAIL=youremail@yourdomain.com
ACME_CA_URI=https://acme-staging-v02.api.letsencrypt.org/directory
NGINX_PROXY_CONTAINER=nginx-proxy