-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
53 lines (52 loc) · 1.71 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
53 lines (52 loc) · 1.71 KB
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
services:
terminay-server:
build:
context: .
dockerfile: Dockerfile
args:
OCI_VERSION: local
OCI_REVISION: compose
image: terminay-server:local
environment:
TERMINAY_SERVER_ID: compose-local
TERMINAY_DATA_ROOT: /var/lib/terminay
# Keep the repository at its host absolute path inside the development
# container. Linked Git worktrees store absolute gitdir pointers, so a
# conventional /workspace bind would make their .git file unusable.
TERMINAY_PROJECT_ROOT: ${PWD}
TERMINAY_ENDPOINT: loopback
TERMINAY_HTTP_HOST: 0.0.0.0
TERMINAY_HTTP_PORT: "4317"
TERMINAY_PUBLIC_ORIGIN: http://localhost:4317
TERMINAY_WEB_ORIGIN: http://127.0.0.1:8080
TERMINAY_HEALTH_HOST: 0.0.0.0
TERMINAY_HEALTH_PORT: "4318"
GIT_CONFIG_COUNT: "1"
GIT_CONFIG_KEY_0: safe.directory
GIT_CONFIG_VALUE_0: ${PWD}
volumes:
- terminay-server-data:/var/lib/terminay
# Mount the containing checkout directory at the identical absolute
# path. This exposes both this worktree and its common Git directory
# while the server's file APIs remain bounded to TERMINAY_PROJECT_ROOT.
- ..:${PWD}/..
read_only: true
tmpfs:
- /tmp:rw,noexec,nosuid,size=64m
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
expose:
- "4317"
- "4318"
ports:
- "127.0.0.1:4317:4317"
healthcheck:
test: ["CMD", "node", "-e", "fetch('http://127.0.0.1:4318/readyz').then((response) => process.exit(response.ok ? 0 : 1)).catch(() => process.exit(1))"]
interval: 10s
timeout: 3s
start_period: 5s
retries: 6
volumes:
terminay-server-data: