-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem Nginx to Apache container #234
Comments
i think you need expose port 80 in wordpress |
Setting the hostname on the proxy to local.dev AND as VIRTUAL_HOST to wordpress doesn't seem right to me.. I can imagine that nginx will forward requests for local.dev to itself..hence the welcome to nginx result... |
I need to |
try this:
|
@fgirardey No, that should mean it's already exposed. There's something else going on here. The Nginx welcome page generally only shows when the config file generated by |
@fgirardey I notice you aren't mounting the |
Ah ? So i have to mount a volume like that : ? data:
image: groupeforum/data
proxy:
image: jwilder/nginx-proxy
ports:
- "80:80"
- "443:443"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
wordpress:
image: groupeforum/wordpress
links:
- db:mysql
- maildev:maildev
volumes:
- ./app:/var/www/html
environment:
VIRTUAL_HOST: local.dev
APP_ENV: local
restart: always
expose:
- "80"
db:
image: mysql
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: database
MYSQL_USER: user
MYSQL_PASSWORD: password
volumes_from:
- data
ports:
- "3306:3306"
restart: always
maildev:
image: djfarrelly/maildev
ports:
- "1080:80"
- "1025:25" |
The equivalent of those settings are what's needed on the command line, but there have been reports of problems with |
Related docker-composed issue is closed, closing. |
Hi,
I'm not sure if it's a bug but i've got a docker-compose.yml file with the following content :
To be short, the groupeforum/wordpress image is a simple PHP/Apache installation for my WordPress Workflow.
So i can't understand why when i type
http://local.dev
i only got the "Welcome to nginx!" web page.Do i need to use Nginx on my groupeforum/wordpress image ?
The text was updated successfully, but these errors were encountered: