Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
1 vote
1 answer
34 views

Docker Compose: Mounted Laravel's .env File Not Passing Environment Variables (Laravel, MySQL)

I'm trying to connect my Dockerized Laravel application to a MySQL database using Docker Compose. I've mounted the .env file that contains the DB_DATABASE variable, but I'm still encountering the ...
Adrian Gaile Singh's user avatar
0 votes
0 answers
36 views

SQLSTATE[HY000]: General error: 1005 Can't create table 'service' (errno: 13)

MySQL keep failing on creating table. I read about the error on other resources and nothing helped. When i ran command - "docker compose -f ./docker/docker-compose-linux.yaml run --rm php-cli ./...
Andry's user avatar
  • 1
0 votes
1 answer
34 views

Nginx on VPS proxy to Docker container timeout

I’m new to using docker on servers, I have only used it for local development. I am working on a project that the server has nginx installed on it (the host machine), and also some containers running ...
Jean da Silva's user avatar
1 vote
1 answer
54 views

composer not found for docker and codeigniter

This is all new to me. I am using Docker and CodeIgniter. I want to create an image for CodeIgniter in Docker. I am using Docker Desktop on Windows. I have a Dockerfile that contains the code below. ...
aye decoder's user avatar
0 votes
0 answers
24 views

"File not found" on the api page when loading Laravel NGINX app with docker-compose

I have an app that has a server (Laravel) and a client (nodeJS) running on a nginx server with docker-compose. I get the "File not found" error when I go to "localhost/api" page. ...
ivel's user avatar
  • 1
-1 votes
0 answers
37 views

Docker nginx, and php with composer stack no vendor folder

trying to create a web development stack and can't seem to get a working vendor folder which contains "autoload.php and composer.lock files" My custom built PHP image installs fine with no ...
PHP Addict's user avatar
-1 votes
0 answers
60 views

PHPMailer + Mailhog in docker container cannot send email to mailhog

I have a problem with PHP send email to MailHog inside docker container. Test with: Macbook M1 php:8.1.29-cli maihog/mailhog:latest PHPMailer // run.php use PHPMailer\PHPMailer\PHPMailer; use ...
TommyDo's user avatar
  • 671
0 votes
0 answers
49 views

Docker & Laravel & Vue - and get AxiosError 'Network Error'

I ran my app and attempted to log in, but encountered a failure and received an error in the console: AxiosError {message: 'Network Error', name: 'AxiosError', code: 'ERR_NETWORK', config: {…}, ...
yakov's user avatar
  • 621
1 vote
0 answers
37 views

Connect docker compose nginx+php with local database

how to connect nginx+php i was create docker compose with my server database mysql which is on another server, but is still in one network, more or less a simple topology like this: and my file ...
gagah gelap's user avatar
0 votes
1 answer
39 views

docker-compose creates container but does not start apache container

I am using docker-compose to start two containers, one an apache container and the other a maria container. The maria container starts but the apache container shows as created on the docker desktop ...
user1790300's user avatar
  • 1,785
0 votes
0 answers
43 views

problem with docker-compose for wordpress

I recently update my docker to the latest version (version 26.1.4, build 5650f9b), and I keep having issues with the my dockerized wordpress. When I run my docker-compose, some CSS related to header ...
errixed's user avatar
  • 121
0 votes
1 answer
16 views

What means this message "[emerg] host not found in upstream "php" in /etc/nginx/conf.d/default.conf"?

This is my docker-compose.yaml file services: web: image: nginx:latest ports: - "80:80" volumes: - ./nginx/conf.d/default.conf:/etc/nginx/...
Aleks555's user avatar
4 votes
2 answers
257 views

apache and php in seperate containers on ubuntu

I have pulled apache and php-fpm:alpine images into docker-compose.yml as services and trying to connect between these two containers but failed to do so. It says requested URL was not found on the ...
Vishy's user avatar
  • 285
1 vote
1 answer
47 views

How can two laravel docker services communicate?

I have two docker laravel services app1 app2 and I want them to connect with each other. So I have a docker-compose: version: '3.8' services: app1: build: context: ./my-laravel-app ...
rytee's user avatar
  • 21
0 votes
0 answers
17 views

Different response in terminal when using docker run vs docker-compose

My current level: Docker Beginner+/ Intermediate. I am testing the following repo (though I think the question applies to any docker/ docker-compose file) https://github.com/rsubr/php-apache-ubuntu I ...
aVC's user avatar
  • 2,334

15 30 50 per page
1
2 3 4 5
74