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:
Alexandre Janniaux
2025-02-02 20:09:46 +01:00
parent 2e7b90a31c
commit 19d69eaac9
2 changed files with 20 additions and 1 deletions

View 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