-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
63 lines (59 loc) · 1.51 KB
/
docker-compose.dev.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
version: "3.8"
services:
ccx:
build:
context: .
target: dev
dockerfile: ./packages/ccx/docker/linux/Dockerfile
tty: true
volumes:
- yarn_cache:/yarn_cache
- ./.docker/dist:/ccx/dist
- ./.docker/ccx_logs:/ccx_logs
- ./.docker/ccx-store/projects:/ccx-store/projects
- ./.vscode:/ccx/.vscode
- ./.eslintrc.js:/ccx/.eslintrc.js
- ./package.json:/ccx/package.json
- ./tsconfig.json:/ccx/tsconfig.json
- ./packages/common:/ccx/packages/common
- ./packages/client:/ccx/packages/client
- ./packages/auth:/ccx/packages/auth
- ./packages/core:/ccx/packages/core
- ./packages/plugins:/ccx-store/plugins/global
- /ccx/node_modules
- /ccx/packages/common/node_modules
- /ccx/packages/client/node_modules
- /ccx/packages/auth/node_modules
- /ccx/packages/core/node_modules
ports:
- "$CLIENT_PORT:80"
- "$API_PORT:4000"
- "$GIT_PORT:5000"
env_file:
- .env
environment:
- CONTROLLER_HOST
- API_PORT
- GIT_PORT
- SESSION_SECRET
- SESSION_DB_URI
- DB_URI
- WORKERS
- YARN_CACHE_FOLDER=/yarn_cache
depends_on:
- mongo
- worker
worker:
build:
context: packages/worker
dockerfile: docker/linux/Dockerfile
tty: true
volumes:
- /var/run/docker.sock:/var/run/docker.sock
mongo:
image: mongo
volumes:
- ./.docker/mongo_data:/data/db
volumes:
yarn_cache:
driver: local