https://github.com/asapdotid/dcc-mariadb
Docker Compose MariaDB (base Bitnami MariaDB)
https://github.com/asapdotid/dcc-mariadb
bitnami-image database docker docker-compose mariadb mariadb-database mysql
Last synced: 3 months ago
JSON representation
Docker Compose MariaDB (base Bitnami MariaDB)
- Host: GitHub
- URL: https://github.com/asapdotid/dcc-mariadb
- Owner: asapdotid
- License: mit
- Created: 2023-05-31T10:37:59.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-09-23T04:28:12.000Z (9 months ago)
- Last Synced: 2025-09-23T06:20:01.590Z (9 months ago)
- Topics: bitnami-image, database, docker, docker-compose, mariadb, mariadb-database, mysql
- Language: Makefile
- Homepage:
- Size: 38.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Docker Compose MariaDB
Docker image base `bitnami/mariadb` [link](https://hub.docker.com/r/bitnami/mariadb)
## Make sure docker network exist:
```bash
docker network create proxy
docker network create secure
```
## Makefile commands for run the code
```bash
make help
```
First of all:
- Init setup env: `make init` will copy `.make/.env.example` file `.make/.env`
- Init docker compose env: `make env` will copy `src/.env.example` file `src/.env`
## Web environment variables
You could custom environment of setup database to development or production on `.make/.env`:
```bash
# Development
DOCKER_PROJECT_DEV=true
```
Or
```bash
# Production
DOCKER_PROJECT_DEV=false
```
📖 Docker compose MariaDB config of `Bitnami MariaDB` [link](https://hub.docker.com/r/bitnami/mariadb)
## Troubleshoot Persisting your database
Error: `mkdir: cannot create directory '/bitnami/mariadb/data': Permission denied`
Now chown this directory to `1001:1001` since the image is using UID `1001` as the user running the command:
```bash
sudo chown -R 1001:1001 .data/*
```
Or
```bash
sudo chown -R 1001:1001 .data/*
```
## Adminer - Database Management
Optional for database management using Adminer:
```yaml
version: "3.7"
networks:
proxy:
driver: bridge
external: true
secure:
driver: bridge
external: true
services:
adminer:
image: adminer:latest
restart: unless-stopped
ports:
- "8080:8080"
networks:
- proxy
- secure
```
## License
MIT / BSD
## Author Information
This Code was created in 2023 by [Asapdotid](https://github.com/asapdotid).