2023-02-15 21:45:31 +00:00
|
|
|
version: "3"
|
|
|
|
|
|
|
|
services:
|
|
|
|
web:
|
|
|
|
image: nginx:latest
|
|
|
|
hostname: nginx
|
|
|
|
volumes:
|
2023-02-25 13:09:52 +00:00
|
|
|
- ${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/logs:/var/log/nginx
|
2023-02-15 21:45:31 +00:00
|
|
|
links:
|
2023-02-26 00:11:02 +00:00
|
|
|
- php
|
2023-02-15 21:45:31 +00:00
|
|
|
container_name: nginx
|
|
|
|
restart: unless-stopped
|
|
|
|
#labels:
|
|
|
|
# - traefik.enable=true
|
|
|
|
# - traefik.http.routers.nginx.rule=Host(`nginx.example.com`)
|
|
|
|
# - traefik.http.services.nginx.loadbalancer.server.port=80
|
|
|
|
# - traefik.docker.network=proxy
|
|
|
|
# # Part for local lan services only
|
|
|
|
# #- traefik.http.routers.nginx.middlewares=error-pages-middleware@docker
|
|
|
|
php:
|
|
|
|
image: php:8-fpm-alpine
|
|
|
|
hostname: php
|
|
|
|
volumes:
|
2023-02-25 13:09:52 +00:00
|
|
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/nginx/www-data:/var/www
|
2023-02-15 21:45:31 +00:00
|
|
|
container_name: php
|
|
|
|
restart: unless-stopped
|
|
|
|
working_dir: /var/www
|