diff --git a/WebSockets/V3/docker-compose.yml b/WebSockets/V3/docker-compose.yml index acf72a4..55abc57 100644 --- a/WebSockets/V3/docker-compose.yml +++ b/WebSockets/V3/docker-compose.yml @@ -7,9 +7,9 @@ services: build: context: . dockerfile: ./server/Dockerfile - expose: ["8000"] + expose: ["9000"] ports: - - "8000:8000" + - "9000:9000" networks: - default @@ -17,6 +17,21 @@ services: # This is what makes the hot reloading work inside of a Docker container restart: always + ngin: + container_name: "conn_nginx" + # we want to use the image which is build from our Dockerfile + build: + context: . + dockerfile: ./nginx/Dockerfile + expose: ["8020"] + ports: + - "8020:8020" + networks: + - default + # We mount the working dir into the container, handy for development + # This is what makes the hot reloading work inside of a Docker container + restart: always + client: # container_name: "conn_client" # privileged: true diff --git a/WebSockets/V3/nginx/Dockerfile b/WebSockets/V3/nginx/Dockerfile new file mode 100644 index 0000000..897f08e --- /dev/null +++ b/WebSockets/V3/nginx/Dockerfile @@ -0,0 +1,10 @@ +FROM nginx:stable-alpine + +RUN rm /etc/nginx/nginx.conf /etc/nginx/conf.d/default.conf + +# Copy configuration +COPY ./nginx/nginx.conf /etc/nginx/ + +EXPOSE 8020 + +ENTRYPOINT ["nginx", "-g", "daemon off;"] \ No newline at end of file diff --git a/WebSockets/V3/server/Dockerfile b/WebSockets/V3/server/Dockerfile index dbdaf29..ad67a03 100644 --- a/WebSockets/V3/server/Dockerfile +++ b/WebSockets/V3/server/Dockerfile @@ -5,6 +5,9 @@ RUN apk update && \ apk upgrade && \ apk add git +# Install gcc & other related +# RUN apk add build-base + # Set the Current Working Directory inside the container WORKDIR /app/V3/server