2023-02-15 21:45:31 +00:00
|
|
|
services:
|
2024-11-04 12:08:51 +00:00
|
|
|
|
2023-02-15 21:45:31 +00:00
|
|
|
web:
|
2024-03-25 17:26:40 +00:00
|
|
|
image: nginx:stable-alpine
|
2024-11-04 12:08:51 +00:00
|
|
|
container_name: nginx
|
2023-02-15 21:45:31 +00:00
|
|
|
hostname: nginx
|
|
|
|
volumes:
|
2023-03-12 15:27:20 +00:00
|
|
|
- ${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
|
2023-02-25 13:09:52 +00:00
|
|
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/nginx/logs:/var/log/nginx
|
2023-02-15 21:45:31 +00:00
|
|
|
restart: unless-stopped
|
2023-03-12 15:17:37 +00:00
|
|
|
ports:
|
|
|
|
- 8080:80
|
2024-11-04 12:08:51 +00:00
|
|
|
expose:
|
|
|
|
- 80
|
2024-03-15 16:26:40 +00:00
|
|
|
#networks:
|
|
|
|
# - proxy
|
2023-02-15 21:45:31 +00:00
|
|
|
#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
|
2023-02-26 00:37:23 +00:00
|
|
|
|
2023-02-15 21:45:31 +00:00
|
|
|
php:
|
|
|
|
image: php:8-fpm-alpine
|
2024-11-04 12:08:51 +00:00
|
|
|
container_name: php
|
2023-02-15 21:45:31 +00:00
|
|
|
hostname: php
|
|
|
|
volumes:
|
2023-03-12 15:27:20 +00:00
|
|
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/nginx/www-data:/var/www # must be same path to www-data as above
|
2023-11-28 10:17:25 +00:00
|
|
|
#- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/php/custom-php.ini:/usr/local/etc/php/conf.d/php.ini:ro
|
2023-02-15 21:45:31 +00:00
|
|
|
restart: unless-stopped
|
|
|
|
working_dir: /var/www
|
2023-03-12 15:19:22 +00:00
|
|
|
expose:
|
|
|
|
- 9000
|
2024-03-15 16:26:40 +00:00
|
|
|
#networks:
|
|
|
|
# - proxy
|
|
|
|
|
|
|
|
#networks:
|
|
|
|
# proxy:
|
|
|
|
# external: true
|