core-control/docker-compose.yml hinzugefügt
This commit is contained in:
34
core-control/docker-compose.yml
Normal file
34
core-control/docker-compose.yml
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
services:
|
||||||
|
web:
|
||||||
|
image: haedlessdev/corecontrol:latest
|
||||||
|
ports:
|
||||||
|
- "3300:3000"
|
||||||
|
environment:
|
||||||
|
JWT_SECRET: RANDOM_SECRET # Replace with a secure random string
|
||||||
|
DATABASE_URL: "postgresql://postgres:postgres@db:5432/postgres"
|
||||||
|
|
||||||
|
agent:
|
||||||
|
image: haedlessdev/corecontrol-agent:latest
|
||||||
|
environment:
|
||||||
|
DATABASE_URL: "postgresql://postgres:postgres@db:5432/postgres"
|
||||||
|
depends_on:
|
||||||
|
db:
|
||||||
|
condition: service_healthy
|
||||||
|
|
||||||
|
db:
|
||||||
|
image: postgres:17
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: postgres
|
||||||
|
POSTGRES_PASSWORD: postgres
|
||||||
|
POSTGRES_DB: postgres
|
||||||
|
volumes:
|
||||||
|
- postgres_data:/var/lib/postgresql/data
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
||||||
|
interval: 2s
|
||||||
|
timeout: 2s
|
||||||
|
retries: 10
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
postgres_data:
|
||||||
Reference in New Issue
Block a user