-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
36 lines (34 loc) · 1.07 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
version: "3"
services:
mysql:
image: mysql:8.0.16
container_name: servatrice_mysql
command: --sql_mode=
environment:
- MYSQL_ROOT_PASSWORD=root-password
- MYSQL_DATABASE=servatrice
- MYSQL_USER=servatrice
- MYSQL_PASSWORD=password
volumes:
- $PWD/mysql/schema/servatrice.sql:/docker-entrypoint-initdb.d/servatrice.sql
- ./mysql/mount:/var/lib/mysql
restart: unless-stopped
logging:
options:
max-size: 10m
servatrice:
image: saadbruno/servatrice:2.8.0
container_name: servatrice_server
depends_on:
- mysql
ports:
- "4747:4747"
- "4748:4748"
entrypoint: "/bin/bash -c 'sleep 10; servatrice --config /tmp/Servatrice/servatrice.ini --log-to-console'"
volumes:
- ./Servatrice:/tmp/Servatrice
- ./logs:/var/logs/Servatrice
restart: unless-stopped
logging:
options:
max-size: 10m