Files
booklore/example-docker/docker-compose.yml
aditya.chandel 04e517f406 Fix YAML
2025-03-13 12:21:11 -06:00

29 lines
696 B
YAML

name: booklore
services:
booklore:
image: ghcr.io/adityachandelgit/booklore-app:${BOOKLORE_IMAGE_TAG}
container_name: booklore_server
env_file:
- .env
depends_on:
mariadb:
condition: service_healthy
ports:
- "6060:6060"
volumes:
- ${BOOKLORE_DATA_PATH}:/app/data
- ${BOOKLORE_BOOKS_PATH}:/books
mariadb:
image: lscr.io/linuxserver/mariadb:11.4.5
container_name: booklore_mariadb
env_file:
- .env
volumes:
- ${MARIADB_CONFIG_PATH}:/config
restart: unless-stopped
healthcheck:
test: ["CMD", "mariadb-admin", "ping", "-h", "localhost"]
interval: 10s
timeout: 5s
retries: 5