-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathdocker-compose.override.yml
More file actions
60 lines (56 loc) · 1.42 KB
/
docker-compose.override.yml
File metadata and controls
60 lines (56 loc) · 1.42 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
services:
postgres:
ports:
- "5433:5432"
healthcheck:
disable: true
control-layer:
build:
context: .
dockerfile: Dockerfile
target: dev
ports:
- "3001:3001"
environment:
- DATABASE_URL=postgres://control_layer:control_layer_password@postgres:5432/control_layer
volumes:
- ./config.yaml:/app/config.yaml:ro
- ./dwctl/src:/app/dwctl/src:ro
- ./dwctl/Cargo.toml:/app/dwctl/Cargo.toml:ro
- ./dwctl/Cargo.lock:/app/dwctl/Cargo.lock
- ./dwctl/migrations:/app/dwctl/migrations:ro
- ./dwctl/.sqlx:/app/dwctl/.sqlx:ro
- dwctl_target:/app/dwctl/target
- cargo_registry:/usr/local/cargo/registry
- cargo_git:/usr/local/cargo/git
depends_on:
postgres:
condition: service_started
healthcheck:
disable: true
control-layer-frontend:
build:
context: ./dashboard
dockerfile: Dockerfile
ports:
- "5173:5173"
environment:
- BACKEND_URL=http://control-layer:3001
volumes:
- ./dashboard:/app
- control_layer_frontend_node_modules:/app/node_modules
- /app/.vite
develop:
watch:
- action: rebuild
path: ./dashboard/package.json
- action: rebuild
path: ./dashboard/Dockerfile
volumes:
dwctl_target:
control_layer_frontend_node_modules:
cargo_registry:
cargo_git:
networks:
default:
driver: bridge