docker-compose-nginx-letsen.../docker-compose.yml

21 lines
445 B
YAML

version: '3'
services:
nginx:
container_name: ${CONTAINER_NGINX_NAME}
image: nginx:stable
volumes:
- ${WEBROOT_PATH}:/var/www
ports:
- "${NGINX_PORT}:80"
environment:
VIRTUAL_HOST: ${VIRTUAL_HOST}
LETSENCRYPT_HOST: ${LETSENCRYPT_HOST}
LETSENCRYPT_EMAIL: ${LETSENCRYPT_EMAIL}
networks:
default:
external:
name: ${NETWORK}