-
Notifications
You must be signed in to change notification settings - Fork 0
/
caprover.yml
204 lines (174 loc) · 6.78 KB
/
caprover.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
captainVersion: 4
services:
$$cap_appname-mapa-nginx:
image: nginx:latest
restart: unless-stopped
volumes:
- $$cap_appname-mapa-index:/var/www/html/index.php
- $$cap_appname-mapa-public-files:/var/www/html/files
- $$cap_appname-mapa-assets:/var/www/html/assets
ports:
- 80:80
- 443:443
depends_on:
- $$cap_appname-mapa-mapasculturais
caproverExtra:
containerHttpPort: 80
$$cap_appname-mapa-mapasculturais:
image: softagon/mapasculturais:latest
restart: unless-stopped
volumes:
- $$cap_appname-mapa-assets:/var/www/html/assets
- $$cap_appname-mapa-public-files:/var/www/html/files
- $$cap_appname-mapa-private-files:/var/www/var/private-files
- $$cap_appname-mapa-saas-files:/var/www/var/saas-files
- $$cap_appname-mapa-sessions:/var/www/var/sessions
- $$cap_appname-mapa-logs:/var/www/var/logs
environment:
BASE_URL: https://$$cap_appname.$$cap_root_domain
APP_MODE: $$cap_app_mode
LOG_LEVEL: $$cap_log_level
LOG_ENABLED: $$cap_log_enabled
CEP_TOKEN: $$cap_cep_token
MAILER_TRANSPORT: $$cap_mailer_transport
MAILER_FROM: $$cap_mailer_from
MAILER_ALWAYSTO: $$cap_mailer_alwaysto
DB_HOST: srv-captain--$$cap_appname-mapa-db
DB_NAME: $$cap_postgres_db
DB_USER: $$cap_postgres_user
DB_PASS: $$cap_postgres_password
GOOGLE_RECAPTCHA_SITEKEY: $$cap_google_recaptcha_sitekey
GOOGLE_RECAPTCHA_SECRET: $$cap_google_recaptcha_secret
PENDING_PCACHE_RECREATION_INTERVAL: $$cap_pending_pcache_recreation_interval
JOBS_INTERVAL: $$cap_jobs_interval
LOGO_IMAGE: $$cap_logo_image
LOGO_HIDELABEL: $$cap_logo_hidelabel
BUILD_ASSETS: $$cap_build_assets
SMTP_LOGIN: $$cap_smtp_login
SMTP_PASSWORD: $$cap_smtp_password
SMTP_HOST: $$cap_smtp_host
SMTP_PORT: $$cap_smtp_port
AUTH_SALT: $$cap_auth_salt
AUTH_GOOGLE_CLIENT_ID: $$cap_google_client_id
AUTH_GOOGLE_CLIENT_SECRET: $$cap_google_client_secret
depends_on:
- $$cap_appname-mapa-db
- $$cap_appname-mapa-redis
- $$cap_appname-mapa-sessions
$$cap_appname-mapa-redis:
image: redis:6
command: --maxmemory 1256Mb --maxmemory-policy allkeys-lru
restart: unless-stopped
caproverExtra:
notExposeAsWebApp: 'true'
$$cap_appname-mapa-sessions:
image: redis:6
command: --maxmemory 384Mb --maxmemory-policy allkeys-lru
restart: unless-stopped
volumes:
- $$cap_appname-mapa-sessions:/data
caproverExtra:
notExposeAsWebApp: 'true'
$$cap_appname-mapa-db:
image: postgis/postgis:16-master
restart: unless-stopped
environment:
POSTGRES_PASSWORD: $$cap_postgres_password
POSTGRES_USER: $$cap_postgres_user
POSTGRES_DB: $$cap_postgres_db
volumes:
- $$cap_appname-mapa-db-data:/var/lib/postgresql/data
caproverExtra:
notExposeAsWebApp: 'true'
caproverOneClickApp:
variables:
- id: $$cap_postgres_password
label: PostgreSQL Password
defaultValue: $$cap_gen_random_hex(16)
description: 'A senha do usuário do banco de dados PostgreSQL.'
validRegex: /.{1,}/
- id: $$cap_postgres_user
label: PostgreSQL User
defaultValue: mapas
description: 'O usuário do banco de dados PostgreSQL.'
validRegex: /^([a-zA-Z0-9\-\.\_])+$/
- id: $$cap_postgres_db
label: PostgreSQL Database
defaultValue: mapas
description: 'O nome do banco de dados PostgreSQL.'
validRegex: /^([a-zA-Z0-9\-\.\_])+$/
- id: $$cap_base_url
label: Base URL
defaultValue: 'https://$$cap_appname.$$cap_root_domain'
- id: $$cap_app_mode
label: App Mode
defaultValue: production
- id: $$cap_log_level
label: Log Level
defaultValue: DEBUG
- id: $$cap_log_enabled
label: Log Enabled
defaultValue: 'true'
- id: $$cap_cep_token
label: CEP Token
defaultValue: ''
- id: $$cap_mailer_transport
label: Mailer Transport
defaultValue: smtp://localhost:25
- id: $$cap_mailer_from
label: Mailer From
defaultValue: suporte@meumapa.gov.br
- id: $$cap_mailer_alwaysto
label: Mailer Always To
defaultValue: ''
- id: $$cap_google_recaptcha_sitekey
label: Google Recaptcha Site Key
defaultValue: 6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI
- id: $$cap_google_recaptcha_secret
label: Google Recaptcha Secret
defaultValue: 6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe
- id: $$cap_pending_pcache_recreation_interval
label: Pending Pcache Recreation Interval
defaultValue: '1'
- id: $$cap_jobs_interval
label: Jobs Interval
defaultValue: '1'
- id: $$cap_logo_image
label: Logo Image
defaultValue: img/logo-mapas.png
- id: $$cap_logo_hidelabel
label: Logo Hide Label
defaultValue: 'true'
- id: $$cap_build_assets
label: Build Assets
defaultValue: '0'
- id: $$cap_smtp_login
label: SMTP Login
defaultValue: email@gmail.com
- id: $$cap_smtp_password
label: SMTP Password
defaultValue: $$cap_gen_random_hex(16)
- id: $$cap_smtp_host
label: SMTP Host
defaultValue: smtp.gmail.com
- id: $$cap_smtp_port
label: SMTP Port
defaultValue: '587'
- id: $$cap_auth_salt
label: Auth Salt
defaultValue: $$cap_gen_random_hex(36)
- id: $$cap_auth_google_client_id
label: Auth Google Client ID
defaultValue: ''
- id: $$cap_auth_google_client_secret
label: Auth Google Client Secret
defaultValue: $$cap_gen_random_hex(36)
instructions:
start: |-
Mapas Culturais é uma plataforma colaborativa que reúne informações sobre agentes, espaços, eventos e projetos culturais.
end: >
Mapas Culturais está implantado e disponível.
displayName: Mapas Culturais
isOfficial: false
description: Mapas Culturais é uma iniciativa cívica de criação de ferramentas de gestão cultural.
documentation: 'https://github.com/SoftagonSistemas/mapasculturais'