New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can't access my serivce #65
Comments
Should the command be (This will be fixed with #57 - |
Your suggestion doesn't work, I have tried more ways, there's no method to work, wait for your new PR |
Please let me know if still an issue in 1.2.3 |
Hi, I still can't access my service out of the container, but can do that in the container, 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"] |
any thoughts on this @lucacasonato ? I haven't used docker-compose so am a little unsure about this issue.
Is it something like a different port needs to be exposed? |
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" |
ENV
docker-compose.yaml
https://github.com/guzhongren/deno-restful-api-with-postgresql-tdd
Question
when I start my compose, I can access my pgadmin,and postgresq, but I can't access my service written by deno; plz ,help me to find the cause; at the same times, I can request my health API in docker container,
/api/v1/health
thx
The text was updated successfully, but these errors were encountered: