Poo
This commit is contained in:
parent
75edb6984f
commit
808649de7f
@ -12,8 +12,12 @@ RUN mkdir /www && \
|
|||||||
chown -R www:www /var/lib/nginx && \
|
chown -R www:www /var/lib/nginx && \
|
||||||
chown -R www:www /www
|
chown -R www:www /www
|
||||||
|
|
||||||
COPY nginx.conf /etc/nginx/nginx.conf
|
COPY ./docker/nginx.conf /etc/nginx/nginx.conf
|
||||||
|
|
||||||
COPY ../ /www
|
COPY ./ /www
|
||||||
|
|
||||||
CMD ["nginx && php-fpm81 && sleep infinity"]
|
COPY ./docker/run.sh /opt/run.sh
|
||||||
|
|
||||||
|
RUN chmod +x /opt/run.sh
|
||||||
|
|
||||||
|
CMD ["/opt/run.sh"]
|
@ -1 +1,3 @@
|
|||||||
# Docker install
|
# Docker install
|
||||||
|
|
||||||
|
docker build --no-cache -f ./docker/Dockerfile --tag willy-club-website
|
@ -25,6 +25,9 @@ http {
|
|||||||
location = /50x.html {
|
location = /50x.html {
|
||||||
root /var/lib/nginx/html;
|
root /var/lib/nginx/html;
|
||||||
}
|
}
|
||||||
|
location / {
|
||||||
|
try_files $uri $uri/ /index.php?$query_string;
|
||||||
|
}
|
||||||
location ~ \.php$ {
|
location ~ \.php$ {
|
||||||
fastcgi_pass 127.0.0.1:9000;
|
fastcgi_pass 127.0.0.1:9000;
|
||||||
fastcgi_index index.php;
|
fastcgi_index index.php;
|
||||||
|
2
docker/run.sh
Normal file
2
docker/run.sh
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
nginx && php-fpm81 && read var
|
Loading…
Reference in New Issue
Block a user