-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.local.yml
More file actions
87 lines (83 loc) · 2.18 KB
/
docker-compose.local.yml
File metadata and controls
87 lines (83 loc) · 2.18 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
85
86
87
services:
# AIO provides Gitea + Chrome in infra-only mode (no Gigi process).
# Gigi runs locally via `npm run dev` for HMR.
aio:
build:
context: .
dockerfile: Dockerfile.aio
environment:
DATABASE_URL: postgresql://gigi:gigi@postgres:5432/gigi
ADMIN_USER: ${ADMIN_USER:-admin}
ADMIN_PASSWORD: ${ADMIN_PASSWORD:-admin}
ORG_NAME: ${ORG_NAME:-acme}
TELEGRAM_TOKEN: ${TELEGRAM_TOKEN:-}
CLAUDE_TOKEN: ${CLAUDE_TOKEN:-}
INFRA_ONLY: "true"
GIGI_INSTANCE_URL: http://localhost:3000
ports:
- "3300:3300" # Gitea API
- "2222:2222" # Gitea SSH
- "6080:6080" # noVNC (visual browser access)
- "9223:9223" # CDP via nginx relay
shm_size: "2gb"
volumes:
- gigi-data:/data
depends_on:
postgres:
condition: service_healthy
networks:
- gigi-local
healthcheck:
test: ["CMD", "curl", "-sf", "http://localhost:3300/api/v1/version"]
interval: 5s
timeout: 3s
retries: 30
start_period: 60s
postgres:
image: postgres:16-alpine
environment:
POSTGRES_USER: gigi
POSTGRES_PASSWORD: gigi
POSTGRES_DB: gigi
ports:
- "5432:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
- ./scripts/init-test-db.sql:/docker-entrypoint-initdb.d/20-init-test-db.sql:ro
networks:
- gigi-local
healthcheck:
test: ["CMD-SHELL", "pg_isready -U gigi"]
interval: 5s
timeout: 3s
retries: 10
# Full build — production-like. No HMR.
# docker-compose -f docker-compose.local.yml --profile prod up --build
gigi:
build:
context: .
dockerfile: Dockerfile
profiles: ["prod"]
depends_on:
aio:
condition: service_healthy
environment:
DATABASE_URL: postgresql://gigi:gigi@postgres:5432/gigi
GITEA_URL: http://aio:3300
BROWSER_MODE: chrome
BROWSER_VIEW_URL: /browser/
CHROME_CDP_URL: http://aio:9223
PORT: 3000
ports:
- "3100:3000"
volumes:
- workspace:/workspace
networks:
- gigi-local
volumes:
gigi-data:
postgres-data:
workspace:
networks:
gigi-local:
driver: bridge