Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

Docker 404 page not found #288

Open
zaferakbiyik opened this issue Mar 24, 2022 · 1 comment
Open

Docker 404 page not found #288

zaferakbiyik opened this issue Mar 24, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@zaferakbiyik
Copy link

I getting public ip 404 page not found.But i tested curl localhost everything is normal how can fix that ?

https://www.hizliresim.com/l2kq6e6
https://www.hizliresim.com/l23sai4

My docker file docker-compose.yml when ı install
`version: '3'

services:
traefik:
image: traefik:v2.6
command:
- --log.level=INFO
- --api.insecure=true
- --entrypoints.web.address=:80
- --providers.docker
volumes:
- /var/run/docker.sock:/var/run/docker.sock
labels:
traefik.http.routers.dash.rule: Host(dash.localhost)
traefik.http.routers.dash.service: api@internal
ports:
- "80:80"
depends_on:
- server
- web
server:
command: yarn start
labels:
traefik.http.routers.server.rule: Host(api.localhost)
traefik.port: 4000
expose:
- 4000
build:
context: ../.
dockerfile: Dockerfile
args:
BUILD_CONTEXT: server
NPM_TOKEN: ${NPM_TOKEN}
environment:
DB_NAME: postgres
DB_HOST: db
DB_USERNAME: ${DB_USERNAME}
DB_PASSWORD: ${DB_PASSWORD}
REDIS_URI: redis://cache
depends_on:
- db
- cache
web:
command: yarn start
labels:
traefik.http.routers.web.rule: Host(localhost)
traefik.port: 3000
expose:
- 3000
build:
context: ../.
dockerfile: Dockerfile
args:
BUILD_CONTEXT: web
NPM_TOKEN: ${NPM_TOKEN}
environment:
REACT_APP_API_URL: http://api.localhost
depends_on:
- server
db:
image: postgres:13
restart: always
environment:
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_PASSWORD: ${DB_PASSWORD}
volumes:
- ../server/src/model/migrations/dump.sql:/docker-entrypoint-initdb.d/dump.sql

migration:

command: yarn server typeorm schema:sync

build:

context: ../.

dockerfile: Dockerfile

args:

NPM_TOKEN: ${NPM_TOKEN}

environment:

DB_NAME: postgres

DB_HOST: db

DB_USERNAME: ${DB_USERNAME}

DB_PASSWORD: ${DB_PASSWORD}

depends_on:

- db

cache:
image: redis:6
restart: always
`

@zaferakbiyik zaferakbiyik added the bug Something isn't working label Mar 24, 2022
@zaferakbiyik
Copy link
Author

how can ı do expose

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant