hi Technical S. do you have any logs from startup we might be able to look at? It's possible that your networking might prevent accessing your application outside of phoenix and it isn't a Phoenix issue directly. Please refer to the following docker compose example from our own repo:
services:
phoenix:
build:
dockerfile: ./Dockerfile
context: .
depends_on:
- db
ports:
- 6006:6006
- 4317:4317
environment:
- PHOENIX_SQL_DATABASE_URL=postgresql://postgres:postgres@db:5432/postgres
db:
image: postgres:16
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=postgres
ports:
- 5432
volumes:
- database_data:/var/lib/postgresql/data
volumes:
database_data:
driver: local