Answer the question
In order to leave comments, you need to log in
How to fix 503 error in nginx-proxy Docker?
Greetings!
I am using these images:
https://hub.docker.com/r/jwilder/nginx-proxy
https://hub.docker.com/_/php/
Here is my docker-compose.yml file:
version: "3.9"
services:
web:
image: php:7.4-apache
container_name: web
restart: always
volumes:
- ./:/var/www/html
- /srv/www/logs/apache2:/var/log/apache2
nginx-proxy:
image: jwilder/nginx-proxy
container_name: nginx-proxy
restart: always
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
ports:
- "80:80"
- "443:443"
links:
- web
Answer the question
In order to leave comments, you need to log in
Well, first you need to take and carefully read the jwilder/nginx-proxy documentation.
Where are your environment variables set? Here is an example from the docs:
whoami:
image: jwilder/whoami
environment:
- VIRTUAL_HOST=whoami.local
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question