moved nginx-conf into docker image

master
sephger 2024-02-11 13:47:01 +01:00
parent 522cb63f5e
commit fbade425ab
3 changed files with 5 additions and 2 deletions

View File

@ -18,12 +18,13 @@ services:
# Nginx Service # Nginx Service
nginx: nginx:
container_name: web container_name: web
image: nginx:latest build:
dockerfile: nginx-dockerfile
context: .
links: links:
- 'php' - 'php'
volumes: volumes:
- 'webdata:/var/www/html' - 'webdata:/var/www/html'
- './nginx-conf:/etc/nginx/conf.d'
depends_on: depends_on:
- php - php

2
nginx-dockerfile 100644
View File

@ -0,0 +1,2 @@
FROM nginx:latest
ADD nginx.conf /etc/nginx/conf.d/nginx.conf