mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
Docker-compose setup for Servatrice (#3887)
* Docker compose for servatrice * Update README.md * Clean up docker-compose specific configuration
This commit is contained in:
parent
17efe8c003
commit
7285f24a29
3 changed files with 48 additions and 0 deletions
27
docker-compose.yml
Normal file
27
docker-compose.yml
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue