forked from apitable/apitable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.devenv.yaml
97 lines (91 loc) · 1.91 KB
/
docker-compose.devenv.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
version: '3'
services:
backend-server:
image: apitable/devenv:latest
restart: always
ports:
- 8081:8081
expose:
- "8081"
working_dir: /devenv
env_file:
- "${ENV_FILE:-.env}"
volumes:
- ./backend-server:/devenv
environment:
- HOME=/tmp
networks:
- apitable
command: sh -c "./gradlew build -x test && java -jar application/build/libs/application.jar"
web-server:
image: apitable/devenv:latest
restart: always
ports:
- 3000:3000
expose:
- "3000"
working_dir: /devenv
env_file:
- "${ENV_FILE:-.env}"
volumes:
- ./:/devenv
environment:
- HOME=/tmp
networks:
- apitable
command: sh -c "yarn install && yarn build:dst:pre && yarn sd"
room-server:
image: apitable/devenv:latest
restart: always
ports:
- 3333:3333
- 3334:3334
expose:
- "3333"
- "3334"
working_dir: /devenv
env_file:
- "${ENV_FILE:-.env}"
volumes:
- ./:/devenv
environment:
- HOME=/tmp
networks:
- apitable
command: sh -c "yarn install && yarn build:dst:pre && yarn start:room-server"
socket-server:
image: apitable/devenv:latest
restart: always
ports:
- 3001:3001
- 3002:3002
- 3005:3005
- 3007:3007
expose:
- "3001"
- "3002"
- "3005"
- "3007"
working_dir: /devenv
env_file:
- "${ENV_FILE:-.env}"
volumes:
- ./:/devenv
environment:
- HOME=/tmp
networks:
- apitable
command: sh -c "cd packages/socket-server/ && yarn && yarn run start:dev"
protoc:
image: apitable/protoc
working_dir: /devenv
environment:
- PROTO_PATH=scripts/protos
- PROTO_FILE=scripts/protos/serving/*.proto
- TS_PROTO_OUT_PATH
- JAVA_PROTO_OUT_PATH
volumes:
- ./:/devenv
networks:
apitable:
driver: bridge