forked from Wavyzz/dolibarr
docker-dev: add support for postgresql database
The PostgreSQL database can be used as the following:
docker compose -f docker-compose.yml -f docker-compose.postgres.yml up
This allows a bit more modularity and ensuring people can start a
PostgreSQL development setup quickly.
This commit is contained in:
@@ -23,10 +23,11 @@ RUN apt-get update -y \
|
||||
msmtp \
|
||||
msmtp-mta \
|
||||
mailutils \
|
||||
libpq-dev \
|
||||
&& apt-get autoremove -y \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
|
||||
&& docker-php-ext-install -j$(nproc) calendar intl mysqli pdo_mysql gd soap zip \
|
||||
&& docker-php-ext-install -j$(nproc) calendar intl mysqli pdo_mysql pgsql gd soap zip \
|
||||
&& docker-php-ext-configure ldap \
|
||||
&& docker-php-ext-install -j$(nproc) ldap && \
|
||||
mv ${PHP_INI_DIR}/php.ini-development ${PHP_INI_DIR}/php.ini
|
||||
|
||||
18
dev/build/docker-dev/postgres.yml
Normal file
18
dev/build/docker-dev/postgres.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
---
|
||||
networks:
|
||||
internal-pod:
|
||||
internal: true
|
||||
external-pod:
|
||||
internal: false
|
||||
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:latest
|
||||
environment:
|
||||
POSTGRES_PASSWORD: rootpassfordev
|
||||
networks:
|
||||
- internal-pod
|
||||
- external-pod
|
||||
web:
|
||||
depends_on:
|
||||
- postgres
|
||||
Reference in New Issue
Block a user