improved example dockerfile

This commit is contained in:
Djeeberjr 2021-11-22 02:26:40 +01:00
parent de90c24a78
commit 4fc2abe49c

View File

@ -15,7 +15,6 @@ services:
- DB_CONNECTION=s3Browser:hunter2@/s3Browser - DB_CONNECTION=s3Browser:hunter2@/s3Browser
restart: unless-stopped restart: unless-stopped
s3: s3:
container_name: s3
image: minio/minio image: minio/minio
environment: environment:
- MINIO_ROOT_USER=admin - MINIO_ROOT_USER=admin
@ -26,6 +25,19 @@ services:
command: server /data --console-address ":9001" command: server /data --console-address ":9001"
volumes: volumes:
- s3_dev:/data - 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: volumes:
s3_dev: s3_dev:
name: s3_dev name: s3_dev
mariadb_dev:
name: mariadb_dev