-
Notifications
You must be signed in to change notification settings - Fork 151
Expand file tree
/
Copy pathdocker-compose.base.yml
More file actions
45 lines (45 loc) · 1.13 KB
/
Copy pathdocker-compose.base.yml
File metadata and controls
45 lines (45 loc) · 1.13 KB
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
services:
api:
image: xtrime/telegram-api-server:2.7
init: true
build:
context: .
dockerfile: Dockerfile
restart: unless-stopped
stop_grace_period: 15s
volumes:
- ./:/app-host-link
working_dir: /app-host-link
depends_on:
- mysql
environment:
WAIT_HOSTS: mysql:3306
logging:
driver: "json-file"
options:
max-size: "1024k"
max-file: "2"
healthcheck:
test: timeout 15 curl -f http://localhost:9503/system/healthcheck || sh -c 'kill -INT -1 && (sleep 5; kill -s 9 -1)'
interval: 60s
timeout: 30s
retries: 1
mysql:
image: mariadb:12.3
restart: unless-stopped
stop_grace_period: 15s
volumes:
- ./.mysql:/var/lib/mysql
environment:
MARIADB_ALLOW_EMPTY_ROOT_PASSWORD: 'yes'
MARIADB_AUTO_UPGRADE: 'yes'
command:
- --general-log=0
- --slow-query-log=0
- --log-warnings=0
- --performance-schema=OFF
- --skip-name-resolve
- --host-cache-size=0
- --innodb-buffer-pool-size=128M
- --innodb-compression-default=1
- --innodb-compression-algorithm=zlib