forked from kiesraad/abacus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
30 lines (29 loc) · 863 Bytes
/
docker-compose.yml
File metadata and controls
30 lines (29 loc) · 863 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
services:
backend:
image: ghcr.io/tweedegolf/rust-dev:stable
ports:
- "8080:8080"
user: "${USER_ID:?USER_ID not set}:${GROUP_ID:?GROUP_ID not set}"
environment:
RUST_LOG: debug
TZ: "Europe/Amsterdam"
CARGO_HOME: .cargo
CARGO_TARGET_DIR: "./target-docker"
volumes:
- "./backend:/app"
working_dir: /app
command: ["cargo", "watch", "--why", "--ignore", ".cargo", "--ignore", "db.sqlite*", "--ignore", "target-docker", "-x", "run --"]
frontend:
depends_on: [backend]
image: node:22
ports:
- 3000:3000
volumes:
- "./frontend:/app"
working_dir: /app
user: "${USER_ID:?USER_ID not set}:${GROUP_ID:?GROUP_ID not set}"
environment:
TZ: "Europe/Amsterdam"
API_HOST: http://backend:8080
VITE_HOST: "0.0.0.0"
command: ["npx", "vite", "--host"]