An open API service indexing awesome lists of open source software.

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: 1 day ago
JSON representation

Docker Compose MariaDB (base Bitnami MariaDB)

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`
- Init docker compose env: `make compose-init`

## 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).