Docker

Docker – pgvector – Run PostgreSQL with pgvector in Docker Compose

pgvector docker compose : piles de conteneurs dans un port sous un ciel bleu

The official postgres Docker image does not include pgvector. To run PostgreSQL with pgvector locally, use the pgvector/pgvector image: it is the same postgres image, with the extension already installed. Here is a minimal pgvector docker compose file, tested with PostgreSQL 18. The pgvector docker compose file services: db: image: pgvector/pgvector:pg18 environment: POSTGRES_USER: app POSTGRES_PASSWORD: … Read more

Read the article →
OSX

macOS – Install PHP 7.4 and force its use

mains qui tapent sur un ordinateur portable

Start by installing homebrew /bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)” PHP 7.4 has been removed from homebrew-core. You need the tap that keeps the older versions brew tap shivammathur/php brew install shivammathur/php/php@7.4 brew link –force php@7.4 brew services start php@7.4 export PATH=”/usr/local/opt/php@7.4/bin:$PATH” export PATH=”/usr/local/opt/php@7.4/sbin:$PATH” On Apple Silicon, replace /usr/local/opt with /opt/homebrew/opt Once this is done, check … Read more

Categories OSX
Read the article →
Docker

Start a new Symfony5 project with docker-compose, Nginx, PHP 7.4 and MariaDB

conteneurs empilés dans le port de Yangshan

This article contains all the steps necessary to create a Symfony 5 project with docker-compose, nginx and PHP 7.4. File structure To start, we are going to need a docker folder that will contain all the necessary folders for each container. For our example, we will use nginx, php as well as MariaDB Once this … Read more

Read the article →
Nginx

Nginx – phpMyAdmin configuration as location next to a website

façades de briques et portes colorées à Dublin

To start, install phpmyadmin at the desired location. composer create-project phpmyadmin/phpmyadmin I prefer to use composer, but there are other possibilities Once this is done, go in the folder /etc/nginx. To keep the configuration independent, it is possible to create a snippet. sudo nano ../snippets/phpmyadmin.conf Then the following configuration must be created. In this example … Read more

Read the article →
Docker

Docker: How to use XDebug with docker-compose

porte-conteneurs sous les grues du port de Malte

Docker In the docker-compose.yml file create an images/php image importer: build: images/php ports: – 80:80 volumes: – ../..:/var/www find your IP address (ifconfig / ipconfig), in my example (10.1.0.133) Create a Dockerfile in the images/php folder FROM php:7.0.1-apache RUN yes | pecl install -o -f xdebug \ && rm -rf /tmp/pear \ && echo “zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-20151012/xdebug.so” … Read more

Read the article →
Docker

Docker: How to use nano

main qui écrit dans un carnet à côté d'une tasse

To use nano in Docker, you have to update apt-get and install nano. When trying to open a file you may face the error Error opening terminal: unknown. No worries, just export the TERM=xterm variable apt-get update apt-get install nano export TERM=xterm

Read the article →