-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
147 lines (138 loc) · 4 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
version: '2.4'
services:
ingress:
image: traefik:v1.7
restart: always
command:
# - --api
- --docker
- --docker.watch=true
- --docker.exposedbydefault=false
- --debug=false
- --logLevel=WARN
## HTTP only (remove line above if HTTPS is active)
- --entryPoints=Name:http Address::80
## HTTPS
#- --defaultentrypoints=https,http
#- --entryPoints=Name:http Address::80 Redirect.EntryPoint:https
#- --entryPoints=Name:https Address::443 TLS
## letsencrypt
#- --acme
#- --acme.email=${ACME_EMAIL}
#- --acme.storage=/ssl/acme.json
#- --acme.entryPoint=https
#- --acme.onHostRule=true
#- --acme.httpchallenge.entrypoint=http
# other ssl
#- --entryPoints=Name:https Address::443 TLS:/ssl/www.mycert.com.crt,/ssl/www.mycert.com.key
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ssl:/ssl/
ports:
- 80:80
- 443:443
web:
image: ligero/ligerosmart:6.1-nginx
volumes:
- ligerosmart-core:/opt/otrs
- ligerosmart-custom:/opt/otrs/Custom
- ligerosmart-article:/opt/otrs/var/article
- ./app-backups:/app-backups
restart: always
environment:
APP_FQDN: ${WEBSERVER_FQDN:-localhost.localdomain}
APP_DatabaseType: mysql
APP_DatabaseHost: database
APP_Database: ligerosmart
APP_DatabaseUser: ligerosmart
APP_DatabasePw: ligerosmart
APP_NodeID: 1
APP_LigeroSmart_Node: elasticsearch
APP_CustomerID: ligerosmart
APP_DefaultLanguage: pt_BR
TZ: America/Sao_Paulo
START_WEBSERVER: 1
START_SCHEDULER: 1
#START_SSHD: 0
#SSH_PASSWORD:
#DEBUG_MODE: 0
#ROOT_PASSWORD: ligero
labels:
- traefik.enable=true
- traefik.port=80
- traefik.default-path.frontend.rule=PathPrefix:/
- traefik.otrs-path.frontend.rule=PathPrefix:/otrs
- traefik.user-path.frontend.rule=Path:/atendente;ReplacePath:/otrs/index.pl
# set root path to customer
#- traefik.customer-path.frontend.rule=Path:/;ReplacePath:/otrs/customer.pl
- traefik.protocol=http
# Redis cache
# Configuration reference on https://docs.ligerosmart.com
#cache:
# image: redis:6-buster
# restart: always
database:
image: mariadb:10.3
volumes:
- mysql-data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: ligerosmart
MYSQL_DATABASE: ligerosmart
MYSQL_USER: ligerosmart
MYSQL_PASSWORD: ligerosmart
command:
- --max-allowed-packet=64M
- --innodb-buffer-pool-size=1G
- --innodb-log-file-size=256M
- --key_buffer_size=1M
- --join_buffer_size=4M
- --character-set-server=utf8
- --bind-address=0.0.0.0
elasticsearch:
image: ligero/elasticsearch:6.8.23
volumes:
- elasticsearch-data:/usr/share/elasticsearch/data
restart: always
ulimits:
memlock:
soft: -1
hard: -1
environment:
- cluster.name=ligerosmart-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
labels:
- traefik.enable=true
- traefik.port=9200
- traefik.es-path.frontend.rule=PathPrefixStrip:/elasticsearch
- traefik.es-path.frontend.auth.basic.users=admin:$$apr1$$a2ecql8h$$TOd.gTrHOrD825ytXTEnL1
- traefik.protocol=http
grafana:
image: ligero/grafana:8
restart: always
volumes:
- grafana-data:/var/lib/grafana
environment:
- GF_SERVER_ROOT_URL=/grafana/
- GF_AUTH_BASIC_ENABLED=false # avoid elasticsearch auth
labels:
- traefik.enable=true
- traefik.port=3000
- traefik.grafana-path.frontend.rule=PathPrefixStrip:/grafana
- traefik.protocol=http
volumes:
ligerosmart-core:
driver: local
ligerosmart-custom:
driver: local
ligerosmart-article:
driver: local
mysql-data:
driver: local
elasticsearch-data:
driver: local
grafana-data:
driver: local
ssl:
driver: local