forked from Soju06/codex-lb
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
83 lines (80 loc) · 1.8 KB
/
docker-compose.yml
File metadata and controls
83 lines (80 loc) · 1.8 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
services:
server:
build:
context: .
dockerfile: Dockerfile
env_file:
- .env.local
ports:
- "2455:2455"
- "1455:1455"
command:
- fastapi
- run
- app/main.py
- --host
- 0.0.0.0
- --port
- "2455"
- --reload
volumes:
- codex-lb-data:/var/lib/codex-lb
develop:
watch:
- action: sync
path: ./app
target: /app/app
- action: rebuild
path: ./pyproject.toml
- action: rebuild
path: ./uv.lock
- action: rebuild
path: ./Dockerfile
restart: unless-stopped
frontend:
build:
context: ./frontend
dockerfile_inline: |
FROM oven/bun:1.3.7-alpine
WORKDIR /app
COPY package.json bun.lock ./
RUN bun install --frozen-lockfile
COPY . .
CMD ["bun", "run", "dev", "--host", "0.0.0.0"]
ports:
- "5173:5173"
environment:
API_PROXY_TARGET: http://server:2455
develop:
watch:
- action: sync
path: ./frontend
target: /app
ignore:
- node_modules/
- action: rebuild
path: ./frontend/package.json
- action: rebuild
path: ./frontend/bun.lock
postgres:
image: postgres:16-alpine
profiles: ["postgres"]
environment:
POSTGRES_USER: codex_lb
POSTGRES_PASSWORD: codex_lb
POSTGRES_DB: codex_lb
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U codex_lb -d codex_lb"]
interval: 10s
timeout: 5s
retries: 5
volumes:
- codex-lb-postgres-data:/var/lib/postgresql/data
restart: unless-stopped
volumes:
codex-lb-data:
name: codex-lb-data
codex-lb-postgres-data:
name: codex-lb-postgres-data