Docker-compose setup for Servatrice (#3887)

* Docker compose for servatrice

* Update README.md

* Clean up docker-compose specific configuration
This commit is contained in:
Phillip Wheatley 2020-03-17 01:40:58 +00:00 committed by GitHub
parent 17efe8c003
commit 7285f24a29
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 48 additions and 0 deletions

27
docker-compose.yml Normal file
View file

@ -0,0 +1,27 @@
version: '3'
services:
mysql:
image: mysql
environment:
- MYSQL_ROOT_PASSWORD=root-password
- MYSQL_DATABASE=servatrice
- MYSQL_USER=servatrice
- MYSQL_PASSWORD=password
volumes:
- $PWD/servatrice/servatrice.sql:/docker-entrypoint-initdb.d/servatrice.sql
servatrice:
build:
context: .
dockerfile: Dockerfile
image: servatrice
depends_on:
- mysql
ports:
- "4747:4747"
- "4748:4748"
entrypoint: "/bin/bash -c 'sleep 10; servatrice --config /tmp/servatrice.ini --log-to-console'"
restart: always
volumes:
- $PWD/servatrice/docker/servatrice-docker.ini:/tmp/servatrice.ini