-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (44 loc) · 837 Bytes
/
docker-compose.yml
File metadata and controls
48 lines (44 loc) · 837 Bytes
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
networks:
dashboard-net:
driver: bridge
services:
backend:
build: ./backend
ports:
- "8000:8000"
volumes:
- backend_data:/app/data
env_file:
- .env
environment:
- DATABASE_URL=sqlite:///./data/app.db
networks:
- dashboard-net
agent:
build: ./agent
depends_on:
backend:
condition: service_started
env_file:
- .env
environment:
- BACKEND_URL=http://backend:8000
- DEVICE_NAME=docker-agent-01
networks:
- dashboard-net
frontend:
build:
context: ./frontend
args:
VITE_BACKEND_URL: http://backend:8000
VITE_API_TOKEN: ${API_TOKEN}
ports:
- "4173:4173"
env_file:
- .env
depends_on:
- backend
networks:
- dashboard-net
volumes:
backend_data: