add webserver container
parent
c5c5586ff1
commit
bf1f87c6e8
|
@ -10,7 +10,7 @@ RUN apt-get install -y \
|
||||||
RUN pecl install Mosquitto-alpha
|
RUN pecl install Mosquitto-alpha
|
||||||
RUN echo "extension=mosquitto.so" >/etc/php/7.3/mods-available/mosquitto.ini
|
RUN echo "extension=mosquitto.so" >/etc/php/7.3/mods-available/mosquitto.ini
|
||||||
RUN ln -s /etc/php/7.3/mods-available/mosquitto.ini /etc/php/7.3/cli/conf.d/20-mosquitto.ini
|
RUN ln -s /etc/php/7.3/mods-available/mosquitto.ini /etc/php/7.3/cli/conf.d/20-mosquitto.ini
|
||||||
ADD . /app
|
ADD .. /app
|
||||||
|
|
||||||
VOLUME /app/public
|
VOLUME /app/public
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
FROM debian:buster
|
||||||
|
RUN apt-get update && apt-get install -y nginx-light
|
||||||
|
ADD spaceapi.conf /etc/nginx/sites-available
|
||||||
|
RUN rm /etc/nginx/sites-enabled/*
|
||||||
|
RUN ln -s /etc/nginx/sites-available/spaceapi.conf /etc/nginx/sites-enabled/
|
||||||
|
EXPOSE 80
|
||||||
|
CMD ["nginx", "-g", "daemon off;"]
|
|
@ -0,0 +1,5 @@
|
||||||
|
server {
|
||||||
|
listen 80 default_server;
|
||||||
|
root /ap/public;
|
||||||
|
index spaceapi.json;
|
||||||
|
}
|
Loading…
Reference in New Issue