Simple NGINX container using SSL Certificates with LetsEncrypt. No php, no SQL.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

docker-compose.yml 494B

12345678910111213141516171819
  1. version: '3'
  2. services:
  3. nginx:
  4. container_name: ${CONTAINER_NGINX_NAME}
  5. image: nginx:stable
  6. volumes:
  7. - ${WEBROOT_PATH}:/usr/share/nginx/html
  8. - ${NGINX_PATH}/conf.d:/etc/nginx/conf.d
  9. restart: unless-stopped
  10. environment:
  11. VIRTUAL_HOST: ${VIRTUAL_HOST}
  12. LETSENCRYPT_HOST: ${LETSENCRYPT_HOST}
  13. LETSENCRYPT_EMAIL: ${LETSENCRYPT_EMAIL}
  14. networks:
  15. default:
  16. external:
  17. name: ${NETWORK}