Repository navigation
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
87 lines (82 loc) · 1.92 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
87 lines (82 loc) · 1.92 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:
relay:
build:
context: .
dockerfile: Dockerfile.relay
ports:
- "4448:4433/udp"
restart: unless-stopped
volumes:
- ./cert:/etc/relay/cert:ro
networks:
- watchparty-dev
healthcheck:
test: ["CMD", "true"]
interval: 5s
timeout: 3s
retries: 3
publisher:
depends_on:
- relay
build:
context: apps/publisher
dockerfile: Dockerfile.dev
restart: unless-stopped
tty: true
stdin_open: true
volumes:
- ./apps/publisher/src:/usr/src/app/src
- ./apps/publisher/Cargo.toml:/usr/src/app/Cargo.toml
- ./source.mp4:/usr/src/app/source.mp4
- publisher-target:/usr/src/app/target
- publisher-cargo-cache:/usr/local/cargo/registry
environment:
RELAY_URL: "https://relay:4433"
CARGO_INCREMENTAL: "1"
RUST_BACKTRACE: "1"
RUST_LOG: "debug"
networks:
- watchparty-dev
server:
build:
context: apps/server
dockerfile: Dockerfile.dev
ports:
- "15001:8080"
restart: unless-stopped
tty: true
stdin_open: true
volumes:
- ./apps/server/src:/usr/src/app/src
- ./apps/server/tsconfig.json:/usr/src/app/tsconfig.json:ro
environment:
NODE_ENV: development
networks:
- watchparty-dev
client:
depends_on:
- server
- relay
build:
context: apps/client
dockerfile: Dockerfile.dev
ports:
- "15173:4173"
restart: unless-stopped
tty: true
stdin_open: true
volumes:
- ./apps/client/src:/usr/src/app/src
- ./apps/client/public:/usr/src/app/public:ro
- ./apps/client/index.html:/usr/src/app/index.html:ro
- ./apps/client/vite.config.ts:/usr/src/app/vite.config.ts:ro
environment:
NODE_ENV: development
networks:
- watchparty-dev
networks:
watchparty-dev:
driver: bridge
volumes:
publisher-target:
publisher-cargo-cache: