This repository has been archived on 2022-06-28. You can view files and clone it, but cannot push or open issues or pull requests.
Yotter/docker-compose.yml

30 lines
715 B
YAML

version: '3.8'
services:
mariadb:
image: mariadb:10.5
environment:
MYSQL_ROOT_PASSWORD: changeme
MYSQL_DATABASE: yotter
MYSQL_USER: yotter
MYSQL_PASSWORD: changeme
restart: unless-stopped
volumes:
- mysql:/var/lib/mysql
healthcheck:
test: ["CMD", "mysqladmin", "ping", "--silent"]
yotter:
image: ytorg/yotter:latest
restart: unless-stopped
ports:
- "127.0.0.1:5000:5000"
environment:
DATABASE_URL: mysql+pymysql://yotter:changeme@mariadb:3306/yotter
depends_on:
- mariadb
volumes:
- migrations:/usr/src/app/migrations
- ./yotter-config.json:/usr/src/app/yotter-config.json
volumes:
mysql:
migrations: