-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
67 lines (61 loc) · 1.27 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
version: '3.0'
services:
web:
container_name: kratos-client
build:
context: .
dockerfile: Dockerfile
args:
- WORKSPACE=client
command: npm run client:dev
volumes:
- type: bind
source: ./packages/client
target: /root/code/packages/client
- /root/code/node_modules
ports:
- 3000:3000
networks:
- pxee-internal
api:
container_name: kratos-server
build:
context: .
dockerfile: Dockerfile
args:
- WORKSPACE=server
command: npm run server:dev
volumes:
- type: bind
source: ./packages/server
target: /root/code/packages/server
- /root/code/node_modules
ports:
- 4000:4000
environment:
NODE_ENV: development
networks:
- pxee-internal
mongodb:
container_name: mongodb
image: mongo:latest
env_file: ./packages/server/.env
ports:
- '27017:27017'
volumes:
- mongodb:/data/db
networks:
- pxee-internal
mongodb_test:
container_name: mongodb_test
image: mongo:latest
command: mongod --port 27018
env_file: ./packages/server/.env.test
ports:
- '27018:27018'
networks:
- pxee-internal
volumes:
mongodb:
networks:
pxee-internal: