-
-
Notifications
You must be signed in to change notification settings - Fork 140
/
docker-compose.yml
151 lines (149 loc) · 5.01 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
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
services:
ssh:
image: shellhubio/ssh:${SHELLHUB_VERSION}
restart: unless-stopped
environment:
- PRIVATE_KEY=/run/secrets/ssh_private_key
- SHELLHUB_ENTERPRISE=${SHELLHUB_ENTERPRISE}
- SHELLHUB_CLOUD=${SHELLHUB_CLOUD}
- SHELLHUB_LOG_LEVEL=${SHELLHUB_LOG_LEVEL}
- SHELLHUB_LOG_FORMAT=${SHELLHUB_LOG_FORMAT}
- SHELLHUB_BILLING=${SHELLHUB_BILLING}
- ALLOW_PUBLIC_KEY_ACCESS_BELLOW_0_6_0=${SHELLHUB_ALLOW_PUBLIC_KEY_ACCESS_BELLOW_0_6_0}
- RECORD_URL=${SHELLHUB_RECORD_URL}
- BILLING_URL=${SHELLHUB_BILLING_URL}
ports:
- "${SHELLHUB_SSH_PORT}:2222"
secrets:
- ssh_private_key
networks:
- shellhub
healthcheck:
test: "curl -f http://ssh:8080/healthcheck || exit 1"
interval: 30s
start_period: 10s
depends_on:
- redis
api:
image: shellhubio/api:${SHELLHUB_VERSION}
restart: unless-stopped
environment:
- SHELLHUB_VERSION=${SHELLHUB_VERSION}
- PRIVATE_KEY=/run/secrets/api_private_key
- PUBLIC_KEY=/run/secrets/api_public_key
- SHELLHUB_ENTERPRISE=${SHELLHUB_ENTERPRISE}
- SHELLHUB_BILLING=${SHELLHUB_BILLING}
- SHELLHUB_CLOUD=${SHELLHUB_CLOUD}
- MAXMIND_MIRROR=${SHELLHUB_MAXMIND_MIRROR}
- MAXMIND_LICENSE=${SHELLHUB_MAXMIND_LICENSE}
- TELEMETRY=${SHELLHUB_TELEMETRY:-}
- TELEMETRY_SCHEDULE=${SHELLHUB_TELEMETRY_SCHEDULE:-}
- SHELLHUB_LOG_LEVEL=${SHELLHUB_LOG_LEVEL}
- SHELLHUB_LOG_FORMAT=${SHELLHUB_LOG_FORMAT}
- SENTRY_DSN=${SHELLHUB_SENTRY_DSN}
- SHELLLHUB_ANNOUNCEMENTS=${SHELLLHUB_ANNOUNCEMENTS:-}
- SHELLHUB_SSH_PORT=${SHELLHUB_SSH_PORT}
- SHELLHUB_DOMAIN=${SHELLHUB_DOMAIN}
- ASYNQ_GROUP_MAX_DELAY=${SHELLHUB_ASYNQ_GROUP_MAX_DELAY}
- ASYNQ_GROUP_GRACE_PERIOD=${SHELLHUB_ASYNQ_GROUP_GRACE_PERIOD}
- ASYNQ_GROUP_MAX_SIZE=${SHELLHUB_ASYNQ_GROUP_MAX_SIZE}
- ASYNQ_UNIQUENESS_TIMEOUT=${SHELLHUB_ASYNQ_UNIQUENESS_TIMEOUT}
- REDIS_CACHE_POOL_SIZE=${SHELLHUB_REDIS_CACHE_POOL_SIZE}
- MAXIMUM_ACCOUNT_LOCKOUT=${SHELLHUB_MAXIMUM_ACCOUNT_LOCKOUT}
depends_on:
- mongo
- redis
links:
- mongo
- redis
secrets:
- api_private_key
- api_public_key
networks:
- shellhub
healthcheck:
test: "curl -f http://api:8080/api/healthcheck || exit 1"
interval: 30s
start_period: 10s
ui:
image: shellhubio/ui:${SHELLHUB_VERSION}
restart: unless-stopped
environment:
- SHELLHUB_STRIPE_PUBLISHABLE_KEY=${STRIPE_PUBLISHABLE_KEY}
- SHELLHUB_BILLING=${SHELLHUB_BILLING}
- SHELLHUB_CHATWOOT_WEBSITE_TOKEN=${SHELLHUB_CHATWOOT_WEBSITE_TOKEN}
- SHELLHUB_CHATWOOT_BASEURL=${SHELLHUB_CHATWOOT_BASEURL}
- SHELLHUB_ENTERPRISE=${SHELLHUB_ENTERPRISE}
- SHELLHUB_CLOUD=${SHELLHUB_CLOUD}
- SHELLHUB_ANNOUNCEMENTS=${SHELLHUB_ANNOUNCEMENTS}
- SHELLHUB_VERSION=${SHELLHUB_VERSION}
- SHELLHUB_SENTRY_DSN=${SHELLHUB_SENTRY_DSN}
- SHELLHUB_PAYWALL=${SHELLHUB_PAYWALL}
- SHELLHUB_CONNECTOR=${SHELLHUB_CONNECTOR}
- SHELLHUB_TUNNELS=${SHELLHUB_TUNNELS}
networks:
- shellhub
healthcheck:
test: "curl -f http://ui:8080/healthcheck || exit 1"
interval: 30s
start_period: 10s
gateway:
image: shellhubio/gateway:${SHELLHUB_VERSION}
restart: unless-stopped
environment:
- SHELLHUB_DOMAIN=${SHELLHUB_DOMAIN}
- SHELLHUB_TUNNELS=${SHELLHUB_TUNNELS}
- SHELLHUB_TUNNELS_DOMAIN=${SHELLHUB_TUNNELS_DOMAIN}
- SHELLHUB_TUNNELS_DNS_PROVIDER_TOKEN=${SHELLHUB_TUNNELS_DNS_PROVIDER_TOKEN}
- SHELLHUB_VERSION=${SHELLHUB_VERSION}
- SHELLHUB_SSH_PORT=${SHELLHUB_SSH_PORT}
- SHELLHUB_PROXY=${SHELLHUB_PROXY}
- SHELLHUB_ENTERPRISE=${SHELLHUB_ENTERPRISE}
- SHELLHUB_CLOUD=${SHELLHUB_CLOUD}
- SHELLHUB_AUTO_SSL=${SHELLHUB_AUTO_SSL}
depends_on:
- api
- ui
ports:
- ${SHELLHUB_BIND_ADDRESS}:${SHELLHUB_HTTP_PORT}:80
networks:
- shellhub
healthcheck:
test: "curl -f -k -L http://gateway/healthcheck || exit 1"
interval: 30s
start_period: 10s
cli:
image: shellhubio/cli:${SHELLHUB_VERSION}
stop_signal: SIGKILL
command: /bin/sleep infinity
environment:
- SHELLHUB_LOG_LEVEL=${SHELLHUB_LOG_LEVEL}
- SHELLHUB_LOG_FORMAT=${SHELLHUB_LOG_FORMAT}
networks:
- shellhub
mongo:
image: mongo:4.4.29
restart: unless-stopped
healthcheck:
test: 'test $$(echo "rs.initiate({ _id: ''rs'', members: [ { _id: 0, host: ''mongo:27017'' } ] }).ok || rs.status().ok" | mongo --quiet) -eq 1'
interval: 30s
start_period: 10s
command: ["--replSet", "rs", "--bind_ip_all"]
networks:
- shellhub
redis:
image: redis
restart: unless-stopped
command: ["redis-server", "--appendonly", "no", "--save", "\"\""]
networks:
- shellhub
secrets:
ssh_private_key:
file: ./ssh_private_key
api_private_key:
file: ./api_private_key
api_public_key:
file: ./api_public_key
networks:
shellhub:
name: ${SHELLHUB_NETWORK}