TelegramApiServer/docker-compose.yml
Alexander Pankratov ac648dc9d0 Upgrade mariadb
2023-07-09 23:52:51 +02:00

41 lines
883 B
YAML

services:
api:
image: xtrime/telegram-api-server:latest
build:
context: .
dockerfile: Dockerfile
init: true
restart: unless-stopped
ports:
- "127.0.0.1:9503:9503"
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"
command:
- "-s=session"
mysql:
image: mariadb:11.0
restart: unless-stopped
ports:
- "127.0.0.1:9507:3306"
volumes:
- ./.mysql:/var/lib/mysql
environment:
MARIADB_ALLOW_EMPTY_ROOT_PASSWORD: 'yes'
MARIADB_AUTO_UPGRADE: 'yes'
command:
- --skip-grant-tables
- --innodb-buffer-pool-size=32M
- --wait_timeout=65
networks:
default:
name: telegram-api-server