TelegramApiServer/docker-compose.yml

38 lines
882 B
YAML
Raw Normal View History

2020-03-09 00:42:17 +01:00
services:
api:
2020-03-11 00:20:14 +01:00
image: xtrime/telegram-api-server:latest
2022-04-18 00:32:29 +02:00
build:
context: .
dockerfile: Dockerfile
init: true
2020-03-09 00:42:17 +01:00
restart: unless-stopped
ports:
- "127.0.0.1:9503:9503"
2020-03-09 22:38:56 +01:00
volumes:
2020-03-11 00:20:14 +01:00
- ./:/app-host-link
working_dir: /app-host-link
2020-06-07 22:56:42 +02:00
depends_on:
- mysql
environment:
WAIT_HOSTS: mysql:3306
2020-03-09 00:42:17 +01:00
logging:
driver: "json-file"
options:
2020-03-11 00:20:14 +01:00
max-size: "1024k"
2020-06-07 22:56:42 +02:00
max-file: "2"
2023-01-16 11:55:53 +01:00
command:
- "-s=session"
2020-06-07 22:56:42 +02:00
mysql:
2022-08-07 22:56:52 +02:00
image: mariadb:10.8
2020-06-07 22:56:42 +02:00
restart: unless-stopped
ports:
- "127.0.0.1:9507:3306"
volumes:
- ./.mysql:/var/lib/mysql
environment:
2023-03-20 13:58:32 +01:00
MARIADB_ALLOW_EMPTY_ROOT_PASSWORD: 'yes'
MARIADB_AUTO_UPGRADE: 'yes'
command: ["mysqld", "--innodb-buffer-pool-size=32M", "--wait_timeout=65", "--skip-grant-tables"]
2020-06-08 00:42:49 +02:00
networks:
default:
name: telegram-api-server