mirror of
https://github.com/wlinator/luminara.git
synced 2024-10-02 20:43:12 +00:00
32 lines
No EOL
899 B
YAML
32 lines
No EOL
899 B
YAML
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:
|
|
- 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 |