Answer the question
In order to leave comments, you need to log in
How can php and mysql be reached in a docker container?
snippet docker-compose.yml
services:
web:
image: debian.loc
volumes:
- .:/app
links:
- php
php:
image: php:7.3-fpm
volumes:
- .:/app
ports:
- "9000:9000"
FROM debian:9.3
RUN apt-get install nginx-full
Answer the question
In order to leave comments, you need to log in
Of course, there is no php in the web container - it is in the php container
. But, probably, there is no bash there and there is no option to go inside the container - only php.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question