-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
69 lines (65 loc) · 1.52 KB
/
docker-compose.yml
File metadata and controls
69 lines (65 loc) · 1.52 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
65
66
67
68
69
services:
mongodb:
image: mongo:7.0
container_name: tableau-migration-mongodb
restart: unless-stopped
ports:
- "27017:27017"
environment:
- MONGO_INITDB_DATABASE=tableau-migrations
volumes:
- mongodb_data:/data/db
networks:
- tableau-migration-network
healthcheck:
test: ["CMD", "mongosh", "--eval", "db.adminCommand('ping')"]
interval: 10s
timeout: 5s
retries: 5
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: tableau-migration-backend
restart: unless-stopped
ports:
- "3000:3000"
environment:
- NODE_ENV=development
- PORT=3000
- MONGODB_URI=mongodb://mongodb:27017/tableau-migrations
- JWT_SECRET=dev-jwt-secret-change-in-production
- JWT_EXPIRES_IN=7d
volumes:
- ./backend:/app
- /app/node_modules
depends_on:
mongodb:
condition: service_healthy
networks:
- tableau-migration-network
command: npm run dev
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: tableau-migration-frontend
restart: unless-stopped
ports:
- "5173:5173"
environment:
- VITE_API_URL=http://localhost:3000/api
volumes:
- ./frontend:/app
- /app/node_modules
depends_on:
- backend
networks:
- tableau-migration-network
command: npm run dev
volumes:
mongodb_data:
driver: local
networks:
tableau-migration-network:
driver: bridge