Files
backend/docker-compose.yaml
T

31 lines
644 B
YAML

services:
db:
image: postgres
restart: unless-stopped
environment:
POSTGRES_DB: listhub
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
listhub_backend:
build: .
restart: unless-stopped
depends_on:
- db
environment:
DB_URL: jdbc:postgresql://db:5432/listhub
DB_USER: postgres
DB_PASS: postgres
JWT_SECRET: awdpokawodjawoidjawidjoij120391829d3j8a0jd8s9dawd
ports:
- "8080:8080"
volumes:
- listhub_data:/app
volumes:
postgres_data:
listhub_data: