-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
84 lines (79 loc) · 2.16 KB
/
Copy pathdocker-compose.yml
File metadata and controls
84 lines (79 loc) · 2.16 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# Archon Docker Compose — Minimal Dev/Test Stack
services:
postgres:
image: postgres:16-alpine
ports:
- "5432:5432"
environment:
POSTGRES_USER: archon
POSTGRES_PASSWORD: archon
POSTGRES_DB: archon
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U archon"]
interval: 5s
timeout: 5s
retries: 5
redis:
image: redis:7-alpine
ports:
- "6379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 5
backend:
build: ./backend
ports:
- "8000:8000"
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
environment:
ARCHON_DATABASE_URL: "postgresql+asyncpg://archon:archon@postgres:5432/archon"
ARCHON_REDIS_URL: "redis://redis:6379/0"
ARCHON_AUTH_DEV_MODE: "true"
ARCHON_JWT_SECRET: "dev-secret-key-for-testing"
ARCHON_JWT_ALGORITHM: "HS256"
ARCHON_DEBUG: "true"
ARCHON_VAULT_ADDR: "http://vault:8200"
ARCHON_VAULT_TOKEN_PATH: "/var/run/secrets/vault-token"
ARCHON_VAULT_NAMESPACE: "archon"
ARCHON_VAULT_MOUNT_POINT: "secret"
ARCHON_VAULT_TOKEN: "dev-root-token"
healthcheck:
test: ["CMD", "curl", "-sf", "http://localhost:8000/health"]
interval: 10s
timeout: 5s
retries: 10
start_period: 15s
keycloak:
image: quay.io/keycloak/keycloak:26.0
ports:
- "8180:8080"
command: start-dev
environment:
KC_DB: dev-file
KC_HEALTH_ENABLED: "true"
KC_HTTP_RELATIVE_PATH: /auth
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: admin
healthcheck:
test: ["CMD-SHELL", "exec 3<>/dev/tcp/localhost/9000 && echo -e 'GET /auth/health/ready HTTP/1.1\\r\\nHost: localhost\\r\\nConnection: close\\r\\n\\r\\n' >&3 && timeout 1 cat <&3 | grep -q 'UP'"]
interval: 10s
timeout: 5s
retries: 10
start_period: 60s
frontend:
build: ./frontend
ports:
- "3000:3000"
depends_on:
backend:
condition: service_healthy
volumes:
postgres_data: