-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathlocal.yml
248 lines (229 loc) · 6.98 KB
/
local.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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
version: "3.7"
volumes:
local_postgres_data: {}
local_postgres_data_backups: {}
local_rocket_mongodb_data: { driver: local }
local_waautomate_data: {}
local_wppconnect_data: {}
local_wppconnect_tokens: {}
local_prometeus_data: {}
nodemodules: {}
services:
django:
&django
build:
context: .
dockerfile: ./compose/local/django/Dockerfile
image: rocket_connect_local_django
container_name: django
depends_on:
- postgres
- mailhog
- redis
- celeryworker
volumes:
- .:/app:z
env_file:
- ./.envs/.local/.django
- ./.envs/.local/.postgres
#- ./.env
ports:
- "8000:8000"
healthcheck:
test: curl --fail http://localhost:8000
interval: 30s
timeout: 10s
retries: 3
command: /start
postgres:
build:
context: .
dockerfile: ./compose/production/postgres/Dockerfile
image: rocket_connect_production_postgres
container_name: postgres
ports:
- "5432:5432"
volumes:
- local_postgres_data:/var/lib/postgresql/data:Z
- local_postgres_data_backups:/backups:z
env_file:
- ./.envs/.local/.postgres
docs:
image: rocket_connect_local_docs
container_name: docs
build:
context: .
dockerfile: ./compose/local/docs/Dockerfile
env_file:
- ./.envs/.local/.django
volumes:
- ./docs:/docs:z
- ./config:/app/config:z
- ./rocket_connect:/app/rocket_connect:z
ports:
- "7000:7000"
command: /start-docs
mailhog:
image: mailhog/mailhog:v1.0.1
ports:
- "8025:8025"
redis:
image: redis:5.0
container_name: redis
celeryworker:
<<: *django
image: rocket_connect_local_celeryworker
container_name: celeryworker
depends_on:
- redis
- postgres
- mailhog
ports: []
healthcheck:
disable: true
command: /start-celeryworker
celerybeat:
<<: *django
image: rocket_connect_local_celerybeat
container_name: celerybeat
depends_on:
- redis
- postgres
- mailhog
ports: []
healthcheck:
disable: true
command: /start-celerybeat
flower:
<<: *django
image: rocket_connect_local_flower
container_name: flower
ports:
- "5555:5555"
healthcheck:
test: curl --fail http://localhost:5555
interval: 30s
timeout: 10s
retries: 3
command: /start-flower
rocketchat:
image: registry.rocket.chat/rocketchat/rocket.chat:${RELEASE:-5.4.8-alpine}
restart: on-failure
environment:
MONGO_URL: "${MONGO_URL:-\
mongodb://${MONGODB_ADVERTISED_HOSTNAME:-mongodb}:${MONGODB_INITIAL_PRIMARY_PORT_NUMBER:-27017}/\
${MONGODB_DATABASE:-rocketchat}?replicaSet=${MONGODB_REPLICA_SET_NAME:-rs0}}"
MONGO_OPLOG_URL: "${MONGO_OPLOG_URL:\
-mongodb://${MONGODB_ADVERTISED_HOSTNAME:-mongodb}:${MONGODB_INITIAL_PRIMARY_PORT_NUMBER:-27017}/\
local?replicaSet=${MONGODB_REPLICA_SET_NAME:-rs0}}"
ROOT_URL: ${ROOT_URL:-http://localhost:${HOST_PORT:-3000}}
PORT: ${PORT:-3000}
ADMIN_USERNAME: adminrc
ADMIN_PASS: admin
ADMIN_EMAIL: [email protected]
OVERWRITE_SETTING_Accounts_TwoFactorAuthentication_Enforce_Password_Fallback: "false"
OVERWRITE_SETTING_SMTP_Host: mailhog
OVERWRITE_SETTING_SMTP_Port: 1025
OVERWRITE_SETTING_From_Email: [email protected]
OVERWRITE_SETTING_API_Enable_Rate_Limiter: "false"
OVERWRITE_SETTING_Livechat_validate_offline_email: "false"
OVERWRITE_SETTING_CREATE_TOKENS_FOR_USERS: "true"
OVERWRITE_SETTING_Accounts_SystemBlockedUsernameList: administrator,system,user
OVERWRITE_SETTING_Apps_Framework_Development_Mode: "true"
OVERWRITE_SETTING_Prometheus_Enabled: "true"
OVERWRITE_SETTING_Accounts_ShowFormLogin: "true"
OVERWRITE_SETTING_Show_Setup_Wizard: "completed"
depends_on:
- mongodb
expose:
- ${PORT:-3000}
ports:
- host_ip: ${BIND_IP:-0.0.0.0}
target: ${PORT:-3000}
published: ${HOST_PORT:-3000}
protocol: tcp
mode: host
mongodb:
image: docker.io/bitnami/mongodb:${MONGODB_VERSION:-4.4}
restart: on-failure
volumes:
- local_rocket_mongodb_data:/bitnami/mongodb
#- ./mongodb_version/5.4.3:/bitnami/mongodb
#- ./mongodb_version/5.4.1:/bitnami/mongodb
#- ./mongodb_version/6.0.0:/bitnami/mongodb
environment:
MONGODB_REPLICA_SET_MODE: primary
MONGODB_REPLICA_SET_NAME: ${MONGODB_REPLICA_SET_NAME:-rs0}
MONGODB_PORT_NUMBER: ${MONGODB_PORT_NUMBER:-27017}
MONGODB_INITIAL_PRIMARY_HOST: ${MONGODB_INITIAL_PRIMARY_HOST:-mongodb}
MONGODB_INITIAL_PRIMARY_PORT_NUMBER: ${MONGODB_INITIAL_PRIMARY_PORT_NUMBER:-27017}
MONGODB_ADVERTISED_HOSTNAME: ${MONGODB_ADVERTISED_HOSTNAME:-mongodb}
MONGODB_ENABLE_JOURNAL: ${MONGODB_ENABLE_JOURNAL:-true}
ALLOW_EMPTY_PASSWORD: ${ALLOW_EMPTY_PASSWORD:-yes}
ports:
- 27017:27017
webdav:
image: bytemark/webdav
volumes:
- /tmp/web:/var/lib/dav
environment:
- AUTH_TYPE=Basic
- USERNAME=alice
- PASSWORD=secret1234
- LOCATION=/webdav
ports:
- 8011:80
wppconnect:
image: wppconnect/server-cli:main
# for command options: https://github.com/wppconnect-team/server-cli/blob/main/src/program.js
command: wppserver --startAllSession
volumes:
- local_wppconnect_data:/usr/src/server-cli/userDataDir
- local_wppconnect_tokens:/usr/src/server-cli/tokens
ports:
- "21465:21465"
# quepasa:
# image: sufficit/quepasa
# mem_limit: 4096M
# ports:
# - 31000:31000
# extra_hosts:
# - "host.docker.internal:host-gateway"
# restart: always
# stdin_open: true
# tty: true
# environment:
# - WEBSOCKETSSL=false
# - WEBAPIPORT=31000
# - APP_ENV=production
# - MIGRATIONS=/opt/quepasa/migrations
# - DEBUGJSONMESSAGES=false
# - HTTPLOGS=false
apache:
image: 'php:apache'
ports:
- "80:80"
volumes:
- ./compose/local/apache/site:/var/www/html
- ./compose/local/apache/confs/additional.conf:/etc/apache2/conf-enabled/additional.conf
grafana:
image: grafana/grafana:8.2.5
ports:
- 3001:3000
volumes:
- ./compose/local/rocket_metrics/grafana/provisioning/datasources:/etc/grafana/provisioning/datasources:ro
- ./compose/local/rocket_metrics/grafana/provisioning/dashboards/provider:/etc/grafana/provisioning/dashboards:ro
- ./compose/local/rocket_metrics/grafana/provisioning/dashboards/json-exports:/var/lib/grafana/dashboards:ro
depends_on:
- prometheus
prometheus:
image: quay.io/prometheus/prometheus:v2.31.1
ports:
- 9090:9090
command:
- --config.file=/etc/prometheus/prometheus.yml
- '--storage.tsdb.retention.time=12w'
- '--storage.tsdb.path=/prometheus'
volumes:
- local_prometeus_data:/prometheus
- ./compose/local/rocket_metrics/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro