-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (49 loc) · 1.21 KB
/
Copy pathdocker-compose.yml
File metadata and controls
53 lines (49 loc) · 1.21 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
version: "3.9"
services:
postgres:
image: postgres:17-alpine
container_name: forge-postgres
environment:
POSTGRES_USER: forge
POSTGRES_PASSWORD: forge-dev-secret
POSTGRES_DB: forge_autonomy_os
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U forge -d forge_autonomy_os"]
interval: 5s
timeout: 5s
retries: 5
restart: unless-stopped
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: forge-backend
ports:
- "8000:8000"
environment:
FORGE_DB_PATH: /app/app/forge.db
FORGE_PG_DSN: "postgresql+asyncpg://forge:forge-dev-secret@postgres:5432/forge_autonomy_os"
FORGE_PERSISTENCE: postgres
GITHUB_WEBHOOK_SECRET: forge-dev-secret
OTEL_EXPORTER_OTLP_ENDPOINT: ""
OTEL_CONSOLE_EXPORTER: "true"
depends_on:
postgres:
condition: service_healthy
restart: unless-stopped
frontend:
build:
context: .
dockerfile: Dockerfile
container_name: forge-frontend
ports:
- "5173:80"
depends_on:
- backend
restart: unless-stopped
volumes:
pgdata: