-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
56 lines (52 loc) · 1.01 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
version: '3'
services:
admin:
image: node:20.11.0
ports:
- '3000:3000'
volumes:
- ./admin:/home/node/app
- node_modules:/home/node/app/node_modules
working_dir: /home/node/app/
command: sh -c "yarn install && yarn dev"
depends_on:
- mongo
env_file:
- .env
mongo:
image: mongo:latest
ports:
- '27017:27017'
command:
- --storageEngine=wiredTiger
volumes:
- data:/data/db
logging:
driver: none
organizer:
image: node:20.11.0
ports:
- '3001:5173'
volumes:
- ./organizer:/home/node/app
working_dir: /home/node/app
command: bash -c "npm install && npm run dev"
depends_on:
- admin
env_file:
- .env
user:
image: node:20.11.0
ports:
- '3002:4321'
volumes:
- ./user:/home/node/app
working_dir: /home/node/app
command: bash -c "npm install && npm run dev"
depends_on:
- admin
env_file:
- .env
volumes:
data:
node_modules: