mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2025-12-05 20:39:59 -08:00
Docker-Compose support for Windows (#3974)
* Add docker-compose document that works out of the box for Windows, and a storage location for the mysql-database. * Documented Windows support in Readme file
This commit is contained in:
28
docker-compose.yml.windows
Normal file
28
docker-compose.yml.windows
Normal file
@@ -0,0 +1,28 @@
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
mysql:
|
||||
image: mysql
|
||||
environment:
|
||||
- MYSQL_ROOT_PASSWORD=root-password
|
||||
- MYSQL_DATABASE=servatrice
|
||||
- MYSQL_USER=servatrice
|
||||
- MYSQL_PASSWORD=password
|
||||
volumes:
|
||||
- ./servatrice/servatrice.sql:/docker-entrypoint-initdb.d/servatrice.sql
|
||||
- ./servatrice/mysql-storage:/var/lib/mysql
|
||||
|
||||
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:
|
||||
- ./servatrice/docker/servatrice-docker.ini:/tmp/servatrice.ini
|
||||
Reference in New Issue
Block a user