mirror of
https://github.com/Haxxnet/Compose-Examples
synced 2025-02-24 08:58:42 +00:00
Compare commits
No commits in common. "78f68ca8812323f43160097ece64b227f246248e" and "3a73aad8f1b70bf6f59ac0c0b36d1a5c7a74f56f" have entirely different histories.
78f68ca881
...
3a73aad8f1
@ -5,13 +5,11 @@ services:
|
|||||||
image: nginx:latest
|
image: nginx:latest
|
||||||
hostname: nginx
|
hostname: nginx
|
||||||
volumes:
|
volumes:
|
||||||
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/nginx/www-data:/var/www # place your files for web here
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/nginx/www-data:/var/www
|
||||||
- ${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/nginx-conf:/etc/nginx/conf.d
|
||||||
- ${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
|
||||||
ports:
|
|
||||||
- 8080:80
|
|
||||||
#labels:
|
#labels:
|
||||||
# - traefik.enable=true
|
# - traefik.enable=true
|
||||||
# - traefik.http.routers.nginx.rule=Host(`nginx.example.com`)
|
# - traefik.http.routers.nginx.rule=Host(`nginx.example.com`)
|
||||||
@ -24,9 +22,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 # must be same path to www-data as above
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/nginx/www-data:/var/www
|
||||||
container_name: php
|
container_name: php
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
working_dir: /var/www
|
working_dir: /var/www
|
||||||
expose:
|
|
||||||
- 9000
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user