-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
40 lines (37 loc) · 812 Bytes
/
Copy pathdocker-compose.yaml
File metadata and controls
40 lines (37 loc) · 812 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
version: '3.9'
services:
backend:
build:
context: ./NoteCraft_backend
dockerfile: Dockerfile.web
container_name: notecraft_backend
ports:
- "8000:8000"
volumes:
- ./NoteCraft_backend:/app
env_file:
- .env
depends_on:
- redis # Optional: Remove if cloud-based and not needed for startup ordering
celery:
build:
context: ./NoteCraft_backend
dockerfile: Dockerfile.celery
container_name: notecraft_celery
volumes:
- ./NoteCraft_backend:/app
env_file:
- .env
depends_on:
- backend
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: notecraft_frontend
ports:
- "3000:3000"
volumes:
- ./frontend:/app
depends_on:
- backend