forked from Team-NoxVeil/InterXAI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
63 lines (58 loc) · 1.2 KB
/
Copy pathdocker-compose.yml
File metadata and controls
63 lines (58 loc) · 1.2 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
version: '3.8' # In recent versions, the utility no longer reads this field
services:
api:
build:
context: ./backend
dockerfile: Dockerfile
ports:
- "8000:8000"
env_file:
- ./backend/.env
volumes:
- ./backend:/app
depends_on:
- redis
taskiq_worker:
build:
context: ./backend
dockerfile: Dockerfile.taskiq
env_file:
- ./backend/.env
volumes:
- ./backend:/app
depends_on:
- redis
- api
redis:
image: redis:7-alpine
ports:
- "6379:6379"
volumes:
- redis_data:/data
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
args:
# Empty default value.
# In real deployments, this is provided via a host environment variable
# or a root-level .env file.
VITE_API_URL: ${VITE_API_URL:-}
ports:
- "8080:80"
depends_on:
- api
piston:
image: ghcr.io/engineer-man/piston
privileged: true
ports:
- "2000:2000"
environment:
- PISTON_RUN_TIMEOUT=15000
- PISTON_COMPILE_TIMEOUT=15000
volumes:
- piston_data:/piston
restart: always
volumes:
redis_data:
piston_data: