-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
34 lines (32 loc) · 789 Bytes
/
compose.yml
File metadata and controls
34 lines (32 loc) · 789 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
services:
frontend:
container_name: $PROJECT-frontend
build:
context: ./frontend
dockerfile: resources/Dockerfile.dev
args:
NODE_VERSION: ${NODE_VERSION}
command: npm run dev
ports:
- 5173:5173
volumes:
- ./frontend/src:/app/src
backend:
container_name: $PROJECT-backend
build:
context: ./backend
dockerfile: resources/Dockerfile.dev
command: cargo run
environment:
- SMTP_HOST=0.0.0.0:2525
- WEB_HOST=0.0.0.0:3000
ports:
- 2525:2525
volumes:
- ./backend/src:/app/src
- ./backend/Cargo.toml:/app/Cargo.toml
- ./backend/Cargo.lock:/app/Cargo.lock
- ./backend/migrations:/app/migrations
- backend_target:/app/target
volumes:
backend_target: