-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
45 lines (43 loc) · 988 Bytes
/
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
37
38
39
40
41
42
43
44
45
version: "3.9"
services:
database:
image: mariadb:10.10
restart: always
environment:
MYSQL_USER: scrolls
MYSQL_PASSWORD: scrolls
MYSQL_DATABASE: scrolls
MYSQL_RANDOM_ROOT_PASSWORD: "true"
command: [ "mysqld", "--character-set-server=utf8mb4", "--collation-server=utf8mb4_unicode_ci" ]
volumes:
- "dbdata:/var/lib/mysql"
logging:
driver: "json-file"
options:
max-size: "100M"
max-file: "5"
scrolls:
image: ghcr.io/wakingstones/turtles:latest
restart: always
depends_on:
- database
environment:
SERVER_IP: ${SERVER_IP}
SERVER_PORT: 8081
NODE_ID: test-server
DB_HOST: database
DB_USER: scrolls
DB_PASSWORD: scrolls
volumes:
- "scrolls:/scrolls/download"
ports:
- "8081:8081"
- "8082:8082"
logging:
driver: "json-file"
options:
max-size: "100M"
max-file: "5"
volumes:
dbdata:
scrolls: