Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- services:
- booklore:
- image: booklore/booklore:latest
- # Or use the GitHub Container Registry image:
- # image: ghcr.io/booklore-app/booklore:latest
- container_name: booklore
- environment:
- - PUID=1026
- - PGID=100
- - TZ=UTC # Replace with your timezone
- - DATABASE_URL=jdbc:mariadb://mariadb-books:3306/booklore
- - DATABASE_USERNAME=booklore
- - DATABASE_PASSWORD= 123-changeme
- - BOOKLORE_PORT=6060
- depends_on:
- mariadb-books:
- condition: service_healthy
- ports:
- - "6060:6060"
- volumes:
- - ./data:/app/data
- - ./books:/books
- - ./bookdrop:/bookdrop
- restart: unless-stopped
- mariadb-books:
- image: lscr.io/linuxserver/mariadb:11.4.5
- container_name: mariadb-books
- environment:
- - PUID=1026
- - PGID=100
- - TZ=UTC # Replace with you timezone code
- - MYSQL_ROOT_PASSWORD= abc-changeme
- - MYSQL_DATABASE=booklore
- - MYSQL_USER=booklore
- - MYSQL_PASSWORD= 123-changeme
- volumes:
- - ./config:/config
- restart: unless-stopped
- healthcheck:
- test: ["CMD", "mariadb-admin", "ping", "-h", "localhost"]
- interval: 5s
- timeout: 5s
- retries: 10
Advertisement
Add Comment
Please, Sign In to add comment