mirror of
https://github.com/wlinator/luminara.git
synced 2024-10-02 20:23:12 +00:00
refactor: Add production docker-compose file for v3
This commit is contained in:
parent
506911242e
commit
e78707c83c
1 changed files with 28 additions and 0 deletions
28
docker-compose.prod.yml
Normal file
28
docker-compose.prod.yml
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
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
|
||||||
|
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
|
Loading…
Reference in a new issue