-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
67 lines (67 loc) · 1.91 KB
/
docker-compose.yml
File metadata and controls
67 lines (67 loc) · 1.91 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
name: tero
services:
common:
build:
context: src
dockerfile: common/Dockerfile
postgres:
image: pgvector/pgvector:pg17
environment:
POSTGRES_PASSWORD: admin
POSTGRES_DB: tero
ports:
- "5432:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
migrations:
build:
context: src
args:
SKIP_FRONTEND: "true"
additional_contexts:
tero-common: service:common
environment:
DB_URL: "postgresql+psycopg://postgres:admin@postgres/tero"
OPENID_URL: ""
env_file: .env
command: ["poetry", "run", "alembic", "upgrade", "head"]
keycloak:
image: keycloak/keycloak:26.3
ports:
- "8080:8080"
environment:
KC_BOOTSTRAP_ADMIN_USERNAME: admin
KC_BOOTSTRAP_ADMIN_PASSWORD: admin
volumes:
- ./docker/keycloak:/opt/keycloak/data/import
command: [ "start-dev", "--import-realm" ]
app:
build:
context: src
additional_contexts:
tero-common: service:common
environment:
DB_URL: "postgresql+psycopg://postgres:admin@postgres/tero"
OPENID_URL: "http://keycloak:8080/realms/tero"
FRONTEND_OPENID_URL: "http://localhost:8080/realms/tero"
FRONTEND_URL: "http://localhost:8000"
BROWSER_TOOL_PLAYWRIGHT_MCP_URL: "http://playwright:8931/mcp"
BROWSER_TOOL_PLAYWRIGHT_OUTPUT_DIR: /tmp/playwright-output
env_file: .env
ports:
- "8000:8000"
depends_on:
- postgres
- keycloak
volumes:
- ./src/backend/var/playwright-output:/tmp/playwright-output
playwright:
image: mcp/playwright:latest
ports:
- "8931:8931"
entrypoint: "node"
command: ["cli.js","--headless","--browser=chromium","--no-sandbox","--port=8931", "--viewport-size=1280x720","--allowed-hosts=playwright:8931,localhost:8931"]
volumes:
- ./src/backend/var/playwright-output:/tmp/playwright-output
volumes:
postgres-data: