-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (39 loc) · 1.12 KB
/
docker-compose.yml
File metadata and controls
42 lines (39 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
services:
api:
build:
context: .
dockerfile: Dockerfile
container_name: agent-runtime-control-tower-api
environment:
ART_DATABASE_URL: postgresql+psycopg://postgres:postgres@postgres:5432/agent_runtime_control_tower
ART_REDIS_URL: redis://redis:6379/0
ports:
- "8000:8000"
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_started
restart: unless-stopped
postgres:
image: postgres:16-alpine
container_name: agent-runtime-control-tower-postgres
environment:
POSTGRES_DB: agent_runtime_control_tower
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d agent_runtime_control_tower"]
interval: 5s
timeout: 5s
retries: 12
restart: unless-stopped
redis:
image: redis:7-alpine
container_name: agent-runtime-control-tower-redis
command: ["redis-server", "--save", "", "--appendonly", "no"]
restart: unless-stopped
volumes:
postgres_data: