TelegramApiServer/docker-compose.yml
Alexander Pankratov 09cfaf4d70 Mysql for docker
2020-06-08 01:44:18 +03:00

31 lines
712 B
YAML

version: '3'
services:
telegram-api-server:
build: ./
image: xtrime/telegram-api-server:latest
container_name: telegram-api-server
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"
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'