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

20 lines
494 B
YAML
Raw Normal View History

2019-01-02 11:29:28 +01:00
version: '3'
services:
nginx:
container_name: ${CONTAINER_NGINX_NAME}
image: nginx:stable
volumes:
2019-01-02 11:35:04 +01:00
- ${WEBROOT_PATH}:/usr/share/nginx/html
2019-01-03 09:58:59 +01:00
- ${NGINX_PATH}/conf.d:/etc/nginx/conf.d
2019-01-02 23:13:13 +01:00
restart: unless-stopped
2019-01-02 11:29:28 +01:00
environment:
VIRTUAL_HOST: ${VIRTUAL_HOST}
LETSENCRYPT_HOST: ${LETSENCRYPT_HOST}
LETSENCRYPT_EMAIL: ${LETSENCRYPT_EMAIL}
networks:
default:
external:
name: ${NETWORK}