forked from agentlabs-dev/openator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
55 lines (52 loc) · 1.36 KB
/
docker-compose.dev.yml
File metadata and controls
55 lines (52 loc) · 1.36 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
version: '3.8'
services:
# We replaced playwright-server with hyperbrowser
# This makes it easier to run the app on a local machine
# but also in a cloud environment.
#
# You can still integrate the playwright-server with a VNC player frontendside.
# But this is painfull :)
#
# playwright:
# build:
# context: ./playwright-server
# dockerfile: Dockerfile.dev
# ports:
# - "5900:5900" # VNC port for remote display
# - "6080:6080" # noVNC Web UI
# - "9222:9222" # WebSocket endpoint for Playwright
# hostname: playwright
# environment:
# - DISPLAY=:99
# volumes:
# - ./playwright-server:/app
backend:
# Uncomment this if you want to use playwright-server
#
# depends_on:
# - playwright
build:
context: ./backend
dockerfile: Dockerfile.dev
ports:
- "3000:3000"
hostname: backend
environment:
- OPENAI_API_KEY=${OPENAI_API_KEY}
- PLAYWRIGHT_WS_ENDPOINT=ws://playwright:9222/ws-endpoint
- HYPERBROWSER_API_KEY=${HYPERBROWSER_API_KEY}
volumes:
- ./backend:/app
- /app/node_modules
frontend:
depends_on:
- backend
build:
context: ./frontend
dockerfile: Dockerfile.dev
ports:
- "3001:3000"
hostname: frontend
volumes:
- ./frontend:/app
- /app/node_modules