system/docker-compose.yml

32 lines
637 B
YAML

version: "3.8"
services:
postgres:
image: postgres:15
container_name: postgres-dev
environment:
POSTGRES_DB: system
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
restart: unless-stopped
postgres-test:
image: postgres:15
container_name: postgres-test
environment:
POSTGRES_DB: system_test
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
ports:
- "5433:5432"
tmpfs:
- /var/lib/postgresql/data
restart: unless-stopped
volumes:
postgres_data: