From 4fc2abe49cea51d00d8fedb47dc14515878c59a3 Mon Sep 17 00:00:00 2001 From: Djeeberjr Date: Mon, 22 Nov 2021 02:26:40 +0100 Subject: [PATCH] improved example dockerfile --- docker-compose.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index ed420c0..c626cd4 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -15,7 +15,6 @@ services: - DB_CONNECTION=s3Browser:hunter2@/s3Browser restart: unless-stopped s3: - container_name: s3 image: minio/minio environment: - MINIO_ROOT_USER=admin @@ -26,6 +25,19 @@ services: command: server /data --console-address ":9001" volumes: - s3_dev:/data + db: + image: mariadb + environment: + - MARIADB_ROOT_PASSWORD=hunter2 + - MARIADB_DATABASE=s3Browser + - MARIADB_USER=s3Browser + - MARIADB_PASSWORD=hunter2 + ports: + - 3306:3306 + volumes: + - mariadb_dev:/var/lib/mysql volumes: s3_dev: - name: s3_dev \ No newline at end of file + name: s3_dev + mariadb_dev: + name: mariadb_dev \ No newline at end of file