-
-
Notifications
You must be signed in to change notification settings - Fork 206
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
66 lines (65 loc) · 2.02 KB
/
docker-compose.yml
File metadata and controls
66 lines (65 loc) · 2.02 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
services:
# Upgrade path from Booklore:
# Keep your existing service name, container_name, database names/users, ports,
# and mounted volumes. Replace only the image line(s) with Grimmory tags.
grimmory:
# Stable release example:
image: grimmory/grimmory:v0.38.2
# Convenience tag:
# image: grimmory/grimmory:latest
# Or the GHCR image:
# image: ghcr.io/grimmory-tools/grimmory:v0.38.2
# The image already embeds its own release version metadata.
container_name: grimmory
environment:
- USER_ID=1000
- GROUP_ID=1000
- TZ=Etc/UTC
- DATABASE_URL=jdbc:mariadb://mariadb:3306/grimmory
- DATABASE_USERNAME=grimmory
- DATABASE_PASSWORD=your_secure_password
- SWAGGER_ENABLED=false
- FORCE_DISABLE_OIDC=false
# ALLOWED_ORIGINS=
# Override JVM memory defaults (the image ships sensible defaults for ~512 MB heap).
# Uncomment and adjust if you want a tighter or looser cap:
# JAVA_TOOL_OPTIONS=-Xmx256m
depends_on:
mariadb:
condition: service_healthy
ports:
- "6060:6060"
volumes:
- ./data:/app/data
- ./books:/books
- ./bookdrop:/bookdrop
# Uncomment the block below if you need to override the defaults:
#healthcheck:
# test: wget -q --spider http://localhost:6060/api/v1/healthcheck
# interval: 60s
# retries: 5
# start_period: 60s
# timeout: 10s
#
# Uncomment the block below if you want to disable healthchecks:
#healthcheck:
# disable: true
restart: unless-stopped
mariadb:
image: lscr.io/linuxserver/mariadb:11.4.8
environment:
- PUID=1000
- PGID=1000
- TZ=Etc/UTC
- MYSQL_ROOT_PASSWORD=super_secure_password
- MYSQL_DATABASE=grimmory
- MYSQL_USER=grimmory
- MYSQL_PASSWORD=your_secure_password
volumes:
- ./config:/config
restart: unless-stopped
healthcheck:
test: [ "CMD", "mariadb-admin", "ping", "-h", "localhost" ]
interval: 5s
timeout: 5s
retries: 10