This repository has been archived on 2021-12-24. You can view files and clone it, but cannot push or open issues/pull-requests.
self-hosting/nginx/docker-compose.yml

27 lines
557 B
YAML

version: '2.4'
services:
app:
build: './nginx'
image: 'nginx-certbot:stable-alpine'
env_file:
- '.env'
networks:
- 'nginx'
ports:
- '$HTTP_PORT:$HTTP_PORT'
- '$HTTPS_PORT:$HTTPS_PORT'
volumes:
- './nginx.conf:/etc/nginx/nginx.conf'
- './sites-enabled:/etc/nginx/sites-enabled'
- './templates:/etc/nginx/templates'
- 'certs:/etc/letsencrypt'
networks:
nginx:
external: true
volumes:
certs: