forked from apitable/apitable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.devenv.yaml
85 lines (79 loc) · 1.66 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
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 "pnpm install && pnpm run build:dst:pre && pnpm run sd"
room-server:
image: apitable/devenv:latest
restart: always
ports:
- "3333:3333"
- "3334:3334"
- "3001:3001"
- "3002:3002"
- "3006:3006"
- "3005:3005"
- "3007:3007"
expose:
- "3333"
- "3334"
- "3001"
- "3002"
- "3006"
- "3005"
- "3007"
working_dir: /devenv
env_file:
- "${ENV_FILE:-.env}"
volumes:
- ./:/devenv
environment:
- HOME=/tmp
- ENABLE_SOCKET=true
networks:
- apitable
command: sh -c "pnpm install && pnpm run build:pre && pnpm run start:room-server"
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