christianlempa-boilerplates/docker-compose/mariadb/docker-compose.yaml
Christoph Schug 1da52bf138 chore(deps): do not use the latest tag for mariadb
Deliberately we do not set the most recent release version here in order
to test the Renovate changes done in #247.
2024-04-30 18:46:42 +02:00

30 lines
908 B
YAML

---
# (Optional) when using custom network
# networks:
# yournetwork:
# external: true
volumes:
mariadb-data:
services:
mariadb:
# (Recommended) replace "latest" with specific version
image: docker.io/library/mariadb:10.10.6
# (Optional) remove this section when you don't want to expose
ports:
- 3306:3306
environment:
# (Optional) remove this section, when using random, or empty root password
- MARIADB_ROOT_PASSWORD=your-root-password
# (Optional) when using random, or empty root password
# - MARIADB_RANDOM_ROOT_PASSWORD=true
# - MARIADB_ALLOW_EMPTY_ROOT_PASSWORD=true
- MARIADB_DATABASE=your-database
- MARIADB_USER=your-user
- MARIADB_PASSWORD=your-password
volumes:
- mariadb-data:/var/lib/mysql
# (Optional) when using custom network
# networks:
# - yournetwork
restart: unless-stopped