2023-10-23 12:49:46 +00:00
|
|
|
services:
|
2024-03-29 17:17:51 +00:00
|
|
|
core:
|
2024-07-20 11:40:43 +00:00
|
|
|
image: ghcr.io/wlinator/luminara:2 # Remove "ghcr.io/" if you want to use the Docker Hub image.
|
2024-07-17 11:28:50 +00:00
|
|
|
container_name: lumi-core
|
2024-03-29 17:17:51 +00:00
|
|
|
restart: always
|
2024-07-19 20:14:28 +00:00
|
|
|
env_file:
|
|
|
|
- path: ./.env
|
|
|
|
required: true
|
2024-03-29 17:17:51 +00:00
|
|
|
depends_on:
|
|
|
|
db:
|
|
|
|
condition: service_healthy
|
2023-10-23 12:49:46 +00:00
|
|
|
|
2024-03-29 17:17:51 +00:00
|
|
|
db:
|
|
|
|
image: mariadb
|
2024-07-17 11:28:50 +00:00
|
|
|
container_name: lumi-db
|
2024-03-29 17:17:51 +00:00
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
MARIADB_ROOT_PASSWORD: ${MARIADB_ROOT_PASSWORD}
|
|
|
|
MARIADB_USER: ${MARIADB_USER}
|
|
|
|
MARIADB_PASSWORD: ${MARIADB_PASSWORD}
|
2024-04-15 17:09:49 +00:00
|
|
|
MARIADB_DATABASE: ${MARIADB_DATABASE}
|
2024-03-29 17:17:51 +00:00
|
|
|
volumes:
|
2024-07-19 20:24:52 +00:00
|
|
|
- ./data:/var/lib/mysql/
|
2024-03-29 17:17:51 +00:00
|
|
|
healthcheck:
|
|
|
|
test: [ "CMD", "mariadb", "-h", "localhost", "-u", "${MARIADB_USER}", "-p${MARIADB_PASSWORD}", "-e", "SELECT 1" ]
|
|
|
|
interval: 5s
|
|
|
|
timeout: 10s
|
|
|
|
retries: 5
|