mirror of
https://github.com/Haxxnet/Compose-Examples
synced 2024-11-30 15:31:12 +00:00
2012cd767e
remove unnecessary link to php
29 lines
947 B
YAML
29 lines
947 B
YAML
version: "3"
|
|
|
|
services:
|
|
web:
|
|
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/logs:/var/log/nginx
|
|
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:
|
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/nginx/www-data:/var/www
|
|
container_name: php
|
|
restart: unless-stopped
|
|
working_dir: /var/www
|