-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
64 lines (60 loc) · 1.24 KB
/
docker-compose.dev.yml
File metadata and controls
64 lines (60 loc) · 1.24 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
services:
mongodb:
image: mongo:8-noble
restart: on-failure
ports:
- "27017:27017"
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=password
- MONGO_INITDB_DATABASE=compare-it
volumes:
- mongodb-data:/data/db
smtp4dev:
image: rnwood/smtp4dev
restart: on-failure
ports:
- "5000:80"
- "2525:25"
backend:
build:
context: ./backend
dockerfile: Dockerfile.dev
restart: on-failure
ports:
- "8080:8080"
depends_on:
- mongodb
- smtp4dev
develop:
watch:
- action: rebuild
path: ./backend/build.gradle.kts
- action: sync+restart
path: ./backend
target: /app/
ignore:
- .gradle/
- build/
frontend:
build:
context: ./frontend
dockerfile: Dockerfile.dev
restart: on-failure
ports:
- "3000:3000"
depends_on:
- backend
env_file:
- ./frontend/.env.local
develop:
watch:
- action: rebuild
path: ./frontend/package.json
- action: sync
path: ./frontend
target: /app/
ignore:
- node_modules/
volumes:
mongodb-data: