-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (40 loc) · 919 Bytes
/
docker-compose.yml
File metadata and controls
42 lines (40 loc) · 919 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
41
42
services:
mongo:
image: mongo:latest
container_name: mongo_db
ports:
- "27017:27017"
volumes:
- mongo_data:/data/db
fullstack:
build:
context: ./
dockerfile: Dockerfile
container_name: fullstack_app
ports:
- "3000:3000"
env_file:
- ./.env
command: npm run dev
depends_on:
- mongo
develop:
watch:
# sync complet du projet
- action: sync
path: ./
target: /src
ignore:
- node_modules/
# rebuild + restart si Dockerfile ou package.json change
- action: sync+restart
path: ./package.json
target: /app/package.json
- action: sync+restart
path: ./Dockerfile
target: /app/Dockerfile
- action: sync+restart
path: ./next.config.ts
target: /app/next.config.ts
volumes:
mongo_data: