Files
prezentacija-komponiranje/docker-compose.yml
2024-01-13 20:17:27 +01:00

31 lines
774 B
YAML

services:
db:
build:
context: ./database
dockerfile: Dockerfile
ports:
- 55432:5432
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 1s
timeout: 5s
retries: 10
machines-app:
build:
context: ./machines
dockerfile: Dockerfile
environment:
- DBHOST=db
- DBPORT=5432
- DBNAME=komponiranje
- DBUSER=pero
- DBPASSWORD=pero.000
ports:
- 3000:3000
depends_on:
db:
condition: service_healthy