-
Notifications
You must be signed in to change notification settings - Fork 53
/
docker-compose.yml
70 lines (62 loc) · 1.26 KB
/
docker-compose.yml
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
name: "RatnaSuperMarket"
version: 'v1.0'
services:
mongodb:
image: mongo:latest
ports:
- ${MONGODBPORT}:27017
volumes:
- ./mongo_data:/data/db
networks:
- ratnanetwork
mongo-express:
image: mongo-express
restart: always
ports:
- ${MONGOEXPPORT}:8081
depends_on:
- mongodb
environment:
ME_CONFIG_MONGODB_URL: mongodb://mongodb:27017/
ME_CONFIG_BASICAUTH: false
networks:
- ratnanetwork
server:
build: ./server
container_name: server
ports:
- ${SERVERPORT}:3000
depends_on:
- mongodb
develop:
watch:
- action: sync
path: ./server
target: /app/server
ignore:
- node_modules/
- action: rebuild
path: ./server/package.json
networks:
- ratnanetwork
client:
build: ./client
container_name: client
ports:
- ${CLIENTPORT}:5173
depends_on:
- mongodb
develop:
watch:
- action: sync
path: ./client
target: /app/client
ignore:
- node_modules/
- action: rebuild
path: ./client/package.json
networks:
- ratnanetwork
networks:
ratnanetwork:
driver: bridge