-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
87 lines (81 loc) · 2.01 KB
/
Copy pathdocker-compose.yml
File metadata and controls
87 lines (81 loc) · 2.01 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:
queue:
image: redis:7
ports:
- "6379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 10
rq-dashboard:
image: eoranged/rq-dashboard
environment:
RQ_DASHBOARD_REDIS_URL: ${REDIS_URL}
ports:
- "${RQ_DASHBOARD_PORT:-9181}:9181"
depends_on:
queue:
condition: service_healthy
api:
build:
context: .
dockerfile: api/Dockerfile
env_file:
- .env
ports:
- "${API_PORT:-8000}:8000"
depends_on:
queue:
condition: service_healthy
worker:
build:
context: .
dockerfile: worker/Dockerfile
env_file:
- .env
depends_on:
queue:
condition: service_healthy
executor:
condition: service_started
environment:
EXECUTE_TESTS_SHARED_WORKSPACE_ROOT: /executor-workspaces
EXECUTE_TESTS_HOST_WORKSPACE_ROOT: ${PWD}/.executor-workspaces
volumes:
- ./.executor-workspaces:/executor-workspaces
executor:
build:
context: .
dockerfile: executor/Dockerfile
env_file:
- .env
environment:
EXECUTE_TESTS_SHARED_WORKSPACE_ROOT: /executor-workspaces
EXECUTE_TESTS_HOST_WORKSPACE_ROOT: ${PWD}/.executor-workspaces
EXECUTOR_ALLOWED_IMAGE: ${EXECUTE_TESTS_IMAGE:-astsp-executor:latest}
depends_on:
queue:
condition: service_healthy
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./.executor-workspaces:/executor-workspaces
client:
build:
context: .
dockerfile: client/Dockerfile
environment:
VITE_API_BASE_URL: http://localhost:${API_PORT:-8000}
VITE_SUPABASE_URL: ${SUPABASE_URL}
VITE_SUPABASE_ANON_KEY: ${SUPABASE_ANON_KEY}
CHOKIDAR_USEPOLLING: "true"
ports:
- "${CLIENT_PORT:-3000}:3000"
volumes:
- ./client:/app
- client_node_modules:/app/node_modules
depends_on:
api:
condition: service_started
volumes:
client_node_modules: