2022-06-11 01:15:05 +02:00
|
|
|
version: '3.9'
|
|
|
|
services:
|
|
|
|
db:
|
|
|
|
image: postgres:14
|
|
|
|
container_name: didier
|
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
- POSTGRES_DB=${DB_NAME:-didier_dev}
|
|
|
|
- POSTGRES_USER=${DB_USERNAME:-postgres}
|
|
|
|
- POSTGRES_PASSWORD=${DB_PASSWORD:-postgres}
|
|
|
|
ports:
|
|
|
|
- "${DB_PORT:-5432}:${DB_PORT:-5432}"
|
|
|
|
volumes:
|
|
|
|
- db:/var/lib/postgresql/data
|
2022-06-29 00:14:44 +02:00
|
|
|
db-pytest:
|
|
|
|
image: postgres:14
|
|
|
|
container_name: didier-pytest
|
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
- POSTGRES_DB=didier_pytest
|
|
|
|
- POSTGRES_USER=pytest
|
|
|
|
- POSTGRES_PASSWORD=pytest
|
|
|
|
ports:
|
|
|
|
- "5433:5432"
|
2022-06-11 01:15:05 +02:00
|
|
|
volumes:
|
|
|
|
db:
|