2020-03-09 22:15:13 +01:00
|
|
|
version: '3'
|
2020-03-09 00:42:17 +01:00
|
|
|
services:
|
|
|
|
telegram-api-server:
|
|
|
|
build: ./
|
2020-03-11 00:20:14 +01:00
|
|
|
image: xtrime/telegram-api-server:latest
|
2020-03-09 00:42:17 +01:00
|
|
|
container_name: telegram-api-server
|
|
|
|
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"
|
|
|
|
mysql:
|
|
|
|
image: mariadb:10.4
|
|
|
|
container_name: telegram-api-server-mysql
|
|
|
|
restart: unless-stopped
|
|
|
|
ports:
|
|
|
|
- "127.0.0.1:9507:3306"
|
|
|
|
volumes:
|
|
|
|
- ./.mysql:/var/lib/mysql
|
|
|
|
environment:
|
|
|
|
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
|