-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
68 lines (64 loc) · 1.13 KB
/
docker-compose.dev.yml
File metadata and controls
68 lines (64 loc) · 1.13 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
services:
client:
build:
context: ./client
dockerfile: Dockerfile.dev
args:
- VITE_SERVER_URL=ws://localhost:3001
ports:
- "80:80"
depends_on:
- server
environment:
- VITE_SERVER_URL=ws://localhost:3001
networks:
- iamafk-network
restart: unless-stopped
server:
build:
context: ./server
dockerfile: Dockerfile.dev
ports:
- "3001:3001"
volumes:
- server-data:/app/data
- ./server:/app
- /app/node_modules
environment:
- NODE_ENV=development
- PORT=3001
- CORS_ORIGIN=http://localhost,http://localhost:3000,http://localhost:5173
- DATA_DIR=/app/data
- MONGODB_URI=mongodb://mongodb:27017/iamafk
- FURNITURE_EXPIRY_HOURS=168
- DAILY_FURNITURE_LIMIT=1000
- BATCH_INTERVAL=300000
- PING_TIMEOUT=60000
- PING_INTERVAL=25000
- LOG_LEVEL=debug
- ENABLE_DEV_TOOLS=true
depends_on:
- mongodb
networks:
- iamafk-network
restart: unless-stopped
mongodb:
image: mongo:7.0
container_name: iamafk-mongodb-dev
restart: unless-stopped
environment:
- MONGO_INITDB_DATABASE=iamafk
volumes:
- mongodb-data:/data/db
networks:
- iamafk-network
ports:
- "27017:27017"
volumes:
server-data:
driver: local
mongodb-data:
driver: local
networks:
iamafk-network:
driver: bridge