-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (44 loc) · 1.17 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
version: '3.1'
#there are 2 normal services and 2 dev services,
# dev services conflicts with normal services so only one instance can run
services:
flowmobilBackDev:
image: node
volumes:
- ./flowmobilBack:/app
- ./pnpm:/pnpm
working_dir: /app
entrypoint: ["bash", "-c", "npm install -g pnpm && ls -l && pwd && pnpm install && pnpm dev"]
ports:
- "3000:3000"
restart: unless-stopped
flowmobilBack:
image: node
volumes:
- ./flowmobilBack:/app
- ./pnpm:/pnpm
entrypoint: ["bash", "-c", "npm install -g pnpm && pnpm run start"]
working_dir: /app
ports:
- "3000:3000"
restart: unless-stopped
flowmobilDev:
image: node
volumes:
- ./flowmobil:/app
- ./pnpm:/pnpm
working_dir: /app
entrypoint: ["bash", "-c", "npm install -g pnpm && pnpm dev"]
ports:
- "5173:5173"
restart: unless-stopped
flowmobil:
image: node
volumes:
- ./flowmobil:/app
- ./pnpm:/pnpm
working_dir: /app
entrypoint: ["bash", "-c", "npm install -g pnpm && pnpm run build && pnpm preview"]
ports:
- "5173:5173"
restart: unless-stopped