moved nginx-conf into docker image
parent
522cb63f5e
commit
fbade425ab
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
FROM nginx:latest
|
||||||
|
ADD nginx.conf /etc/nginx/conf.d/nginx.conf
|
Loading…
Reference in New Issue