Coder Social home page Coder Social logo

can't access my serivce about deno_docker HOT 6 CLOSED

denoland avatar denoland commented on April 28, 2024
can't access my serivce

from deno_docker.

Comments (6)

hayd avatar hayd commented on April 28, 2024 1

Please let me know if still an issue in 1.2.3

from deno_docker.

tststs avatar tststs commented on April 28, 2024 1

if using docker-compose you need to add port mapping for 1993

example:

---
version: "3.2"
services:
  deno:
    container_name: deno
    build:
      dockerfile: deno.Dockerfile
      context: .
    image: hayd/alpine-deno:1.8.0
    restart: unless-stopped
    ports:
      - "1993:1993"

from deno_docker.

hayd avatar hayd commented on April 28, 2024

Should the command be run --allow-net ... (drop the deno prefix).

(This will be fixed with #57 - deno run should also work, I have a version of this on machine but have not yet created a PR...)

from deno_docker.

guzhongren avatar guzhongren commented on April 28, 2024

Your suggestion doesn't work, I have tried more ways, there's no method to work, wait for your new PR

from deno_docker.

guzhongren avatar guzhongren commented on April 28, 2024

Hi, I still can't access my service out of the container, but can do that in the container,

image

FROM hayd/alpine-deno:1.2.3

# The port that your application listens to.
EXPOSE 1993

WORKDIR /app

COPY deps.ts .
RUN deno cache deps.ts
ENV DB_HOST=host.docker.internal

ADD . .

RUN deno cache ./src/index.ts

CMD ["run", "--allow-net", "--allow-env", "./src/index.ts"]

from deno_docker.

hayd avatar hayd commented on April 28, 2024

any thoughts on this @lucacasonato ? I haven't used docker-compose so am a little unsure about this issue.

Hi, I still can't access my service out of the container, but can do that in the container,

Is it something like a different port needs to be exposed?

from deno_docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.