Category : docker-compose

I try to build API inside docker container that connectiong with external(not in container) MSSQL server 2015. I got error when trying to run php artisan passport:install on docker bash. IlluminateDatabaseQueryException : SQLSTATE[08001]: [Microsoft][ODBC Driver 17 for SQL Server]TCP Provider: Error code 0x2746 (SQL: insert into [oauth_clients] ([user_id], [name], [secret], [redirect], [personal_access_client], [password_client], [revoked], [updated_at], ..

Read more

I’m trying to develop a login page in Laravel using LDAP. When I click on the login button, I’ve an error : ldap_bind(): Unable to bind to server: Invalid credentials I know it’s configuration but I don’t found the answer… My .env LDAP Part : LDAP_LOGGING=true LDAP_CONNECTION=default LDAP_HOST=ldap LDAP_PORT=389 LDAP_BASE_DN="dc=test,dc=fr" LDAP_SSL=false LDAP_TLS=false My docker-compose Ldap ..

Read more

Docker version : 19.03.12 Postgres version : latest PHP : 7.4 Project in Laravel When I start docker-compose build, there is an error when it’s try to execute composer dump-autoload –classmap-authoritative –no-dev; Docker-compose : version: ‘3.4’ services: visuall-php: build: context: ./visuall dockerfile: Dockerfile-php volumes: – ./visuall:/var/www/html networks: – visuall visuall-nginx: build: context: ./visuall dockerfile: Dockerfile-nginx ..

Read more

I use laradock but I have problems with files permissions file and directory in laradock_workspace 4 drwxr-xr-x 11 laradock laradock 4096 Sep 7 13:56 app 4 -rwxr-xr-x 1 laradock laradock 1686 Aug 11 17:44 artisan 4 drwxr-xr-x 3 laradock laradock 4096 Aug 11 17:44 bootstrap 4 -rwxr-xr-x 1 laradock laradock 1744 Sep 5 18:30 composer.json ..

Read more

Following a tutorial found here: https://www.youtube.com/watch?v=5N6gTVCG_rw&t=9s Following the tutorial exactly, when I get to around the 11:48 minute mark, where I am supposed to run the command: composer create-project laravel/laravel . To which the terminal response is: zsh: command not found: composer Not sure if this is necessary, but here is my docker-composer.yml file: version: ..

Read more

I have a laravel app and the database containers are configured in this way: db: image: "mysql:5.7" command: ["–sql- mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"] environment: MYSQL_DATABASE: mydb MYSQL_ALLOW_EMPTY_PASSWORD: ‘yes’ volumes: – db_data:/var/lib/mysql restart: unless-stopped networks: – simple_net app: build: context: . dockerfile: ./setup/Dockerfile restart: unless-stopped tty: true ports: – "${APP_PORT}:80" working_dir: /var/www/ volumes: – ./:/var/www/ environment: DB_CONNECTION: mysql DB_HOST: ..

Read more

I have created a new Laravel project in Docker and I am creating a VirtualHost domain-name for my project. My docker-compose.yml looks like this. version: ‘3’ networks: laravel: services: nginx: image: nginx:stable-alpine container_name: nginx ports: – "8080:80" volumes: – ./src:/var/www/html – ./nginx/default.conf:/etc/nginx/conf.d/default.conf depends_on: – php – mysql networks: – laravel webserver: image: jwilder/whoami environment: VIRTUAL_HOST: ..

Read more

I need to get an old version of a Laravel app working. It is using Laravel version 4.2.2. I have a docker setup: version: ‘3.5’ services: laravel: depends_on: – database … database: image: mysql:5 hostname: database environment: MYSQL_ROOT_PASSWORD: mypass MYSQL_DATABASE: mydb MYSQL_USER: myuser MYSQL_PASSWORD: mypass I added database data to config (Laravel 4.2) ‘connections’ => ..

Read more

I have tried to run ‘composer update’ command inside docker container in Aws ec2 instance. But I get this error mmap() failed: [12] Cannot allocate memory mmap() failed: [12] Cannot allocate memory Fatal error: Out of memory (allocated 478179328) (tried to allocate 20996408 bytes) in phar:///usr/local/bin/composer/src/Composer/Util/RemoteFilesystem.php on line 462 I have tried using “memory_limit = ..

Read more

I got an error when I try to open file with fopen function. fopen(‘http://127.0.0.1:8084/storage/protocols/meetings/protocol_3_4_2_3_2_meetings_131.pdf’, ‘rb’); ErrorException fopen(http://127.0.0.1:8084/storage/protocols/meetings/protocol_3_4_2_3_2_meetings_131.pdf): failed to open stream: Connection refused As I understood I have problems with my ports but I am new in docker an can’t solve the issue My docker-compose version: ‘3.7’ networks: backend-network: driver: bridge frontend-network: driver: bridge services: ..

Read more