1
Fork 0
mirror of https://github.com/wlinator/luminara.git synced 2024-10-02 16:23:12 +00:00
Lumi/docker-compose.prod.yml

32 lines
899 B
YAML
Raw Permalink Normal View History

services:
core:
image: ghcr.io/wlinator/luminara:3 # Remove "ghcr.io/" if you want to use the Docker Hub image.
container_name: lumi-core
restart: always
volumes:
2024-09-02 10:36:36 +00:00
- type: bind
source: ./settings.yaml
target: /usr/src/app/settings.yaml
env_file:
- path: ./.env
required: true
depends_on:
db:
condition: service_healthy
db:
image: mariadb
container_name: lumi-db
restart: always
environment:
MARIADB_ROOT_PASSWORD: ${MARIADB_ROOT_PASSWORD}
MARIADB_USER: ${MARIADB_USER}
MARIADB_PASSWORD: ${MARIADB_PASSWORD}
MARIADB_DATABASE: ${MARIADB_DATABASE}
volumes:
- ./data:/var/lib/mysql/
healthcheck:
test: [ "CMD", "mariadb", "-h", "localhost", "-u", "${MARIADB_USER}", "-p${MARIADB_PASSWORD}", "-e", "SELECT 1" ]
interval: 5s
timeout: 10s
retries: 5