Sanic is running well but the site cant be reached from browser, kindly help
Below is my docker-compose and my logs
version: "3.1"
services:
web:
build: .
ports:
- 80:8000
expose:
- 8000
depends_on:
db:
condition: service_healthy
command: [ "sanic", "server.app", "--host=0.0.0.0", "--fast" ]
db:
image: postgres:13
restart: always
user: postgres
environment:
- "POSTGRES_USER=postgres"
- "POSTGRES_PASSWORD=postgres"
- "POSTGRES_DB=postgres"
healthcheck:
test: [ "CMD-SHELL", "pg_isready"]
interval: 1s
timeout: 5s
retries: 10
ports:
- 5432:5432
volumes:
- postgres_data100:/var/lib/postgresql/data100
#command: [ "CMD-SHELL", "ALTER ROLE petreleven SUPERUSER;"]
adminer:
image: adminer
restart: always
ports:
- 8080:8080
volumes:
postgres_data100:
SANIC is running well from my LOGS:
web_1 | [2023-12-24 17:53:09 +0000] [1] [INFO] Sanic v23.6.0
web_1 | [2023-12-24 17:53:09 +0000] [1] [INFO] Goin' Fast @ http://0.0.0.0:8000
web_1 | [2023-12-24 17:53:09 +0000] [1] [INFO] mode: production, goin' fast w/ 8 workers
web_1 | [2023-12-24 17:53:09 +0000] [1] [INFO] server: sanic, HTTP/1.1
web_1 | [2023-12-24 17:53:09 +0000] [1] [INFO] python: 3.10.4
web_1 | [2023-12-24 17:53:09 +0000] [1] [INFO] platform: Linux-6.2.0-39-generic-x86_64-with-glibc2.31
web_1 | [2023-12-24 17:53:09 +0000] [1] [INFO] packages: sanic-routing==23.6.0, sanic-ext==23.6.0
web_1 | [2023-12-24 17:53:12 +0000] [17] [INFO] Sanic Extensions:
web_1 | [2023-12-24 17:53:12 +0000] [17] [INFO] > injection [0 dependencies; 0 constants]
web_1 | [2023-12-24 17:53:12 +0000] [17] [INFO] > openapi [http://0.0.0.0:8000/docs]
web_1 | [2023-12-24 17:53:12 +0000] [17] [INFO] > http
web_1 | [2023-12-24 17:53:12 +0000] [17] [INFO] > templating [jinja2==3.1.2]
web_1 | [2023-12-24 17:53:12 +0000] [20] [INFO] Sanic Extensions:
web_1 | [2023-12-24 17:53:12 +0000] [20] [INFO] > injection [0 dependencies; 0 constants]
web_1 | [2023-12-24 17:53:12 +0000] [20] [INFO] > openapi [http://0.0.0.0:8000/docs]
web_1 | [2023-12-24 17:53:12 +0000] [20] [INFO] > http
web_1 | [2023-12-24 17:53:12 +0000] [20] [INFO] > templating [jinja2==3.1.2]
web_1 | [2023-12-24 17:53:12 +0000] [19] [INFO] Sanic Extensions:
web_1 | [2023-12-24 17:53:12 +0000] [19] [INFO] > injection [0 dependencies; 0 constants]
web_1 | [2023-12-24 17:53:12 +0000] [19] [INFO] > openapi [http://0.0.0.0:8000/docs]
web_1 | [2023-12-24 17:53:12 +0000] [19] [INFO] > http
web_1 | [2023-12-24 17:53:12 +0000] [19] [INFO] > templating [jinja2==3.1.2]
web_1 | [2023-12-24 17:53:12 +0000] [18] [INFO] Sanic Extensions:
web_1 | [2023-12-24 17:53:12 +0000] [18] [INFO] > injection [0 dependencies; 0 constants]
web_1 | [2023-12-24 17:53:12 +0000] [18] [INFO] > openapi [http://0.0.0.0:8000/docs]
web_1 | [2023-12-24 17:53:12 +0000] [18] [INFO] > http
web_1 | [2023-12-24 17:53:12 +0000] [18] [INFO] > templating [jinja2==3.1.2]
web_1 | [2023-12-24 17:53:12 +0000] [16] [INFO] Sanic Extensions:
web_1 | [2023-12-24 17:53:12 +0000] [16] [INFO] > injection [0 dependencies; 0 constants]
web_1 | [2023-12-24 17:53:12 +0000] [16] [INFO] > openapi [http://0.0.0.0:8000/docs]
web_1 | [2023-12-24 17:53:12 +0000] [16] [INFO] > http
web_1 | [2023-12-24 17:53:12 +0000] [16] [INFO] > templating [jinja2==3.1.2]
web_1 | [2023-12-24 17:53:12 +0000] [23] [INFO] Sanic Extensions:
web_1 | [2023-12-24 17:53:12 +0000] [23] [INFO] > injection [0 dependencies; 0 constants]
web_1 | [2023-12-24 17:53:12 +0000] [23] [INFO] > openapi [http://0.0.0.0:8000/docs]
web_1 | [2023-12-24 17:53:12 +0000] [23] [INFO] > http
web_1 | [2023-12-24 17:53:12 +0000] [23] [INFO] > templating [jinja2==3.1.2]
web_1 | [2023-12-24 17:53:12 +0000] [21] [INFO] Sanic Extensions:
web_1 | [2023-12-24 17:53:12 +0000] [21] [INFO] > injection [0 dependencies; 0 constants]
web_1 | [2023-12-24 17:53:12 +0000] [21] [INFO] > openapi [http://0.0.0.0:8000/docs]
web_1 | [2023-12-24 17:53:12 +0000] [21] [INFO] > http
web_1 | [2023-12-24 17:53:12 +0000] [21] [INFO] > templating [jinja2==3.1.2]
web_1 | [2023-12-24 17:53:12 +0000] [22] [INFO] Sanic Extensions:
web_1 | [2023-12-24 17:53:12 +0000] [22] [INFO] > injection [0 dependencies; 0 constants]
web_1 | [2023-12-24 17:53:12 +0000] [22] [INFO] > openapi [http://0.0.0.0:8000/docs]
web_1 | [2023-12-24 17:53:12 +0000] [22] [INFO] > http
web_1 | [2023-12-24 17:53:12 +0000] [22] [INFO] > templating [jinja2==3.1.2]
web_1 | [2023-12-24 17:53:12 +0000] [19] [INFO] Starting worker [19]
web_1 | [2023-12-24 17:53:12 +0000] [17] [INFO] Starting worker [17]
web_1 | [2023-12-24 17:53:12 +0000] [18] [INFO] Starting worker [18]
web_1 | [2023-12-24 17:53:12 +0000] [20] [INFO] Starting worker [20]
web_1 | [2023-12-24 17:53:12 +0000] [23] [INFO] Starting worker [23]
web_1 | [2023-12-24 17:53:12 +0000] [16] [INFO] Starting worker [16]
web_1 | [2023-12-24 17:53:12 +0000] [22] [INFO] Starting worker [22]
web_1 | [2023-12-24 17:53:12 +0000] [21] [INFO] Starting worker [21]