-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
64 lines (58 loc) · 1.35 KB
/
Copy pathdocker-compose.yml
File metadata and controls
64 lines (58 loc) · 1.35 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
version: '3.8'
services:
frontend:
build: ./frontend
ports:
- "3000:3000"
environment:
- VITE_API_URL=http://localhost:8080
- VITE_CODE_SERVER_URL=http://localhost:8443
depends_on:
- backend
volumes:
- ./frontend/src:/app/src
backend:
build: ./backend
ports:
- "8080:8080"
environment:
- DATABASE_URL=postgresql://interview:interview123@postgres:5432/interview_ide
- CODE_SERVER_URL=http://code-server:8443
- TARGET_APP_URL=http://target-app:8000
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}
depends_on:
- postgres
- target-app
code-server:
build: ./code-server
ports:
- "8443:8443"
environment:
- PASSWORD=
volumes:
- workspace:/home/coder/workspace
- ./target-app:/home/coder/workspace/robinhood-backend
target-app:
build:
context: ./target-app
dockerfile: Dockerfile
ports:
- "8000:8000"
environment:
- SCENARIO=${SCENARIO:-default}
volumes:
- target-app-db:/app/data
postgres:
image: postgres:15-alpine
environment:
- POSTGRES_USER=interview
- POSTGRES_PASSWORD=interview123
- POSTGRES_DB=interview_ide
volumes:
- postgres-data:/var/lib/postgresql/data
ports:
- "5432:5432"
volumes:
workspace:
target-app-db:
postgres-data: