-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
166 lines (147 loc) · 4.47 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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
version: "3.2"
services:
mariadb:
image: mariadb:10
container_name: mariadb
hostname: mariadb
volumes:
- /var/lib/mysql:/var/lib/mysql
environment:
- MARIADB_ROOT_PASSWORD=123456
restart: always
healthcheck:
test: mysqladmin ping -h 127.0.0.1 -u root -p$$MARIADB_ROOT_PASSWORD
start_period: 5s
interval: 5s
timeout: 5s
retries: 100
reverse-proxy:
image: traefik:v2.11
command:
- --log.level=DEBUG
- --api.insecure=true
- --providers.docker
- --certificatesresolvers.lets-encrypt.acme.email=suporte@citrait.com.br
- --certificatesresolvers.lets-encrypt.acme.storage=/etc/letsencrypt/acme.json
- --certificatesresolvers.lets-encrypt.acme.httpchallenge=true
- --certificatesresolvers.lets-encrypt.acme.httpchallenge.entrypoint=web
- --entrypoints.web.address=:80
- --entrypoints.websecure.address=:443
ports:
- "80:80"
- "443:443"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./acme.json:/acme.json
- letsencrypt:/etc/letsencrypt/
glpi:
build:
context: ./glpi
dockerfile: Dockerfile
# for glpi < 10.0.7 use the dockerfile bellow
#dockerfile: glpi/Dockerfile-php7
container_name : glpi
hostname: glpi
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
- glpi_www:/var/www/html/glpi
environment:
- TIMEZONE=America/sao_paulo
- VERSION_GLPI=10.0.14
- DB_HOST=mariadb
- DB_PORT=3306
- DB_DATABASE=glpi_dev
- DB_USER=root
- DB_PASSWORD=123456
restart: always
depends_on:
mariadb:
condition: service_healthy
links:
- mariadb
labels:
- traefik.http.routers.glpi.rule=Host(`glpi.empresa.com.br`)
- traefik.http.routers.glpi.tls=true
- traefik.http.routers.glpi.tls.certresolver=lets-encrypt
- traefik.http.routers.glpi.tls.domains[0].main=glpi.empresa.com.br
evolution_api:
image: atendai/evolution-api
container_name: evolution
hostname: evolution
restart: always
volumes:
- evolution_instances:/evolution/instances
- evolution_store:/evolution/store
env_file:
- evolution_api/.env
command: ['node', './dist/src/main.js']
expose:
- "8080"
labels:
- traefik.http.routers.evolution.rule=Host(`whats.empresa.com.br`)
- traefik.http.routers.evolution.tls=true
- traefik.http.routers.evolution.tls.certresolver=lets-encrypt
- traefik.http.routers.evolution.tls.domains[0].main=whats.empresa.com.br
n8n:
image: docker.n8n.io/n8nio/n8n
container_name: n8n
hostname: n8n
restart: always
volumes:
- n8n_data:/home/node/.n8n
labels:
- traefik.http.routers.n8n.rule=Host(`n8n.empresa.com.br`)
- traefik.http.routers.n8n.tls=true
- traefik.http.routers.n8n.tls.certresolver=lets-encrypt
- traefik.http.routers.n8n.tls.domains[0].main=n8n.empresa.com.br
- traefik.http.services.n8n.loadbalancer.server.port=5678
expose:
- "5678:5678"
ports:
- "5678:5678"
extra_hosts:
- 'host.docker.internal:host-gateway'
environment:
- N8N_SECURE_COOKIE=false
typebot-db:
image: postgres:14-alpine
restart: always
volumes:
- db-data:/var/lib/postgresql/data
environment:
- POSTGRES_DB=typebot
- POSTGRES_PASSWORD=typebot
typebot-builder:
image: baptistearno/typebot-builder:latest
container_name: typebot
hostname: typebot
restart: always
depends_on:
- typebot-db
extra_hosts:
- 'host.docker.internal:host-gateway'
env_file: typebot/.env
labels:
- traefik.http.routers.typebot-builder.rule=Host(`typebot.empresa.com.br`)
- traefik.http.routers.typebot-builder.tls=true
- traefik.http.routers.typebot-builder.tls.certresolver=lets-encrypt
- traefik.http.routers.typebot-builder.tls.domains[0].main=typebot.empresa.com.br
typebot-viewer:
image: baptistearno/typebot-viewer:latest
container_name: bot
hostname: bot
restart: always
env_file: typebot/.env
labels:
- traefik.http.routers.bot.rule=Host(`bot.empresa.com.br`)
- traefik.http.routers.bot.tls=true
- traefik.http.routers.bot.tls.certresolver=lets-encrypt
- traefik.http.routers.bot.tls.domains[0].main=bot.empresa.com.br
volumes:
glpi_www:
evolution_instances:
evolution_store:
db-data:
letsencrypt:
n8n_data: