mirror of
https://github.com/coollabsio/coolify-examples.git
synced 2026-02-18 13:28:57 +00:00
27 lines
698 B
YAML
27 lines
698 B
YAML
services:
|
|
traccar-db:
|
|
image: mariadb
|
|
environment:
|
|
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASS}
|
|
MYSQL_DATABASE: traccar
|
|
MYSQL_USER: traccar
|
|
MYSQL_PASSWORD: ${MYSQL_PASS}
|
|
volumes:
|
|
- traccar_db:/var/lib/mysql
|
|
healthcheck:
|
|
test: mariadb-admin -p$$MYSQL_ROOT_PASSWORD ping -h localhost
|
|
interval: 20s
|
|
start_period: 10s
|
|
timeout: 10s
|
|
retries: 3
|
|
traccar:
|
|
restart: unless-stopped
|
|
depends_on:
|
|
traccar-db:
|
|
condition: service_healthy
|
|
volumes:
|
|
- traccar_logs:/opt/traccar/logs
|
|
- traccar_config:/opt/traccar/conf/test.xml
|
|
- test_config:/opt/traccar/logs
|
|
image: traccar/traccar:latest
|