nginx-docker-compose/docker-compose.yaml

28 lines
650 B
YAML
Raw Normal View History

2022-05-30 19:22:39 +00:00
networks:
proxy:
name: ${PROXY_NETWORK-proxy}
services:
nginx:
2022-05-30 19:29:19 +00:00
build:
context: ./
args:
NGINX_TAG: ${NGINX_TAG-stable}
2022-06-02 13:42:45 +00:00
logging:
driver: "json-file"
options:
max-size: ${LOG_MAX_SIZE-100M}
max-file: ${LOG_MAX_FILE-3}
2022-05-30 19:22:39 +00:00
restart: unless-stopped
networks:
- proxy
ports:
- 80:80
- 443:443
volumes:
- ${VOLUME_PATH}/conf.d:/etc/nginx/conf.d
2022-06-01 17:34:09 +00:00
- ${VOLUME_PATH}/letsencrypt-acme-challenge:/data/letsencrypt-acme-challenge
2022-05-30 19:22:39 +00:00
- ${VOLUME_PATH}/etc/letsencrypt:/etc/letsencrypt
2022-08-06 16:16:14 +00:00
- ${VOLUME_PATH}/etc/ssl:/etc/ssl
2022-05-30 19:22:39 +00:00
- ${VOLUME_PATH}/tmp:/tmp