2025-04-13 21:10:17 +02:00
|
|
|
services:
|
|
|
|
|
web:
|
|
|
|
|
image: haedlessdev/corecontrol:latest
|
|
|
|
|
ports:
|
|
|
|
|
- "3000:3000"
|
|
|
|
|
environment:
|
2025-04-15 16:04:06 +02:00
|
|
|
JWT_SECRET: RANDOM_SECRET # Replace with a secure random string
|
2025-04-14 12:27:49 +02:00
|
|
|
DATABASE_URL: "postgresql://postgres:postgres@db:5432/postgres"
|
2025-04-13 21:10:17 +02:00
|
|
|
|
|
|
|
|
agent:
|
|
|
|
|
image: haedlessdev/corecontrol-agent:latest
|
|
|
|
|
environment:
|
2025-04-14 12:27:49 +02:00
|
|
|
DATABASE_URL: "postgresql://postgres:postgres@db:5432/postgres"
|
2025-04-18 16:52:49 +02:00
|
|
|
depends_on:
|
|
|
|
|
db:
|
|
|
|
|
condition: service_healthy
|
2025-04-13 21:10:17 +02:00
|
|
|
|
|
|
|
|
db:
|
|
|
|
|
image: postgres:17
|
|
|
|
|
restart: always
|
|
|
|
|
environment:
|
|
|
|
|
POSTGRES_USER: postgres
|
|
|
|
|
POSTGRES_PASSWORD: postgres
|
|
|
|
|
POSTGRES_DB: postgres
|
|
|
|
|
volumes:
|
|
|
|
|
- postgres_data:/var/lib/postgresql/data
|
2025-04-18 16:52:49 +02:00
|
|
|
healthcheck:
|
|
|
|
|
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
|
|
|
|
interval: 2s
|
|
|
|
|
timeout: 2s
|
|
|
|
|
retries: 10
|
2025-04-13 21:10:17 +02:00
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
|
postgres_data:
|