Update docker-compose.yml

This commit is contained in:
LRVT 2023-03-12 16:27:20 +01:00 committed by GitHub
parent 8524ee429c
commit 78f68ca881
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,8 +5,8 @@ services:
image: nginx:latest image: nginx:latest
hostname: nginx hostname: nginx
volumes: volumes:
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/nginx/www-data:/var/www - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/nginx/www-data:/var/www # place your files for web here
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/nginx/nginx-conf:/etc/nginx/conf.d - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/nginx/nginx-conf:/etc/nginx/conf.d # place provided nginx.conf here
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/nginx/logs:/var/log/nginx - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/nginx/logs:/var/log/nginx
container_name: nginx container_name: nginx
restart: unless-stopped restart: unless-stopped
@ -24,7 +24,7 @@ services:
image: php:8-fpm-alpine image: php:8-fpm-alpine
hostname: php hostname: php
volumes: volumes:
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/nginx/www-data:/var/www - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/nginx/www-data:/var/www # must be same path to www-data as above
container_name: php container_name: php
restart: unless-stopped restart: unless-stopped
working_dir: /var/www working_dir: /var/www