-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
67 lines (62 loc) · 1.33 KB
/
docker-compose.yaml
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
version: "3.9"
services:
client:
image: 389798/client-lerna-image
container_name: vue-3-lerna-container
build:
context: ./packages/vue-3-kit
dockerfile: ./dockerfile
depends_on:
- server
healthcheck:
test: curl -sS http://127.0.0.1:3000 || echo 1
interval: 1m
timeout: 30s
retries: 3
start_period: 30s
volumes:
- ./packages/vue-3-kit
ports:
- 3000:3000
networks:
- lerna-network
server:
image: 389798/server-lerna-image
container_name: express-lerna-container
build:
context: ./packages/express-kit
dockerfile: ./dockerfile
healthcheck:
test: curl -sS http://127.0.0.1:5502 || echo 1
interval: 1m
timeout: 30s
retries: 3
start_period: 30s
command: npm run dev
depends_on:
- mongodb
volumes:
- ./packages/express-kit
ports:
- 5500:5500
networks:
- lerna-network
mongodb:
image: mongo
container_name: mongo-lerna-container
ports:
- 27017:27017
env_file:
- ./packages/express-kit/.env
volumes:
- mongodb-data:/data/db
environment:
- MONGO_INITDB_ROOT_USERNAME
- MONGO_INITDB_ROOT_PASSWORD
networks:
- lerna-network
volumes:
mongodb-data:
networks:
lerna-network:
driver: bridge