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

29 lines
793 B
YAML
Raw Normal View History

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.
container_name: lumi-core
2024-03-29 17:17:51 +00:00
restart: always
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
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