refined-architect-59368
11/18/2024, 9:45 AMdocker-compose
is as follows:
hydra:
image: oryd/hydra:v2.2.0
depends_on:
- redis
- db
ports:
- "4444:4444" # Public port
- "4445:4445" # Admin port
healthcheck:
test: ["CMD-SHELL", " netstat -an | grep -q 4444"]
interval: 1s
timeout: 1s
retries: 10
start_period: 1s
env_file:
- .env.hydra
volumes:
- ./ory/hydra:/usr/local/conf/hydra
restart: unless-stopped
command: serve -c /usr/local/conf/hydra/hydra.yml all --dev
networks:
- some-network
The container is running well, but I can't access neither the public nor private endpoints from my host machine on <http://127.0.0.1:4444>
/ <http://127.0.0.1:4445>
.
Note: I can access the endpoints from within the container.
What could I be missing?refined-architect-59368
11/18/2024, 9:50 AMSERVE_PUBLIC_HOST
to 0.0.0.0
• Validated that there are no other services on those portsrefined-architect-59368
11/18/2024, 9:53 AM.env.hydra
env variable filerefined-architect-59368
11/18/2024, 10:22 AMSERVE_PUBLIC_PORT
SERVE_PUBLIC_HOST
SERVE_ADMIN_PORT
SERVE_ADMIN_HOST
seems to have resolved this issuemagnificent-energy-493