Compare commits

...

3 Commits

Author SHA1 Message Date
LRVT
78f68ca881
Update docker-compose.yml 2023-03-12 16:27:20 +01:00
LRVT
8524ee429c
Update docker-compose.yml 2023-03-12 16:19:22 +01:00
LRVT
746b1118b7
Update docker-compose.yml 2023-03-12 16:17:37 +01:00

View File

@ -5,11 +5,13 @@ services:
image: nginx:latest
hostname: nginx
volumes:
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/nginx/www-data:/var/www
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/nginx/nginx-conf:/etc/nginx/conf.d
- ${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 # place provided nginx.conf here
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/nginx/logs:/var/log/nginx
container_name: nginx
restart: unless-stopped
ports:
- 8080:80
#labels:
# - traefik.enable=true
# - traefik.http.routers.nginx.rule=Host(`nginx.example.com`)
@ -22,7 +24,9 @@ services:
image: php:8-fpm-alpine
hostname: php
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
restart: unless-stopped
working_dir: /var/www
expose:
- 9000