diff --git a/Dockerfile b/Dockerfile index 950fbae..558db77 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,6 +10,7 @@ COPY nodemon.json /usr/src/threetwo COPY jsdoc.json /usr/src/threetwo RUN yarn +ENV DOCKER_SOCKET_HOST cat /etc/hostname COPY . /usr/src/threetwo EXPOSE 3050 diff --git a/docker-compose.yml b/docker-compose.yml index b24650c..3d38b7b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -10,10 +10,6 @@ services: env_file: ./docker-compose.env environment: DOCKER_SOCKET_HOST: ws://${DOCKER_GATEWAY_HOST:-host.docker.internal}:8051 - entrypoint: - - /bin/sh - - -c - - ip -4 route list match 0/0 | awk '{print $$3" host.docker.internal"}' >> /etc/hosts && httpd-foreground restart: unless-stopped labels: - "traefik.enable=true"