Update compose to use new custom nginx infrastructure

This commit is contained in:
Ethan Paul 2024-04-10 19:11:09 -04:00
parent ad2d6877e5
commit 5ea5533ae8
Signed by: enpaul
GPG Key ID: 9B6D99E4CFA31867

View File

@ -3,14 +3,17 @@ services:
nginx: nginx:
container_name: nginx-nextcloud container_name: nginx-nextcloud
image: nginx:latest build: ./nginx
ports: ports:
- 80:80 - 80:80
- 443:443 - 443:443
volumes: volumes:
- ${NEXTCLOUD_DIR}:/var/www/html - ${NEXTCLOUD_DIR}:/var/www/html
- ${DATA_DIR}:/data - ${DATA_DIR}:/data
- ./nginx.conf:/etc/nginx/nginx.conf:ro environment:
- NEXTCLOUD_PHP_FPM_HOST=${NEXTCLOUD_PHP_FPM_HOST}
- NEXTCLOUD_DOMAIN=${NEXTCLOUD_DOMAIN}
- NEXTCLOUD_MAX_UPLOAD_SIZE=${NEXTCLOUD_MAX_UPLOAD_SIZE}
networks: networks:
- nextcloud - nextcloud
depends_on: depends_on: