Skip to content

Commit

Permalink
Use docker volumes instead of disk
Browse files Browse the repository at this point in the history
  • Loading branch information
Ignas committed Aug 9, 2024
1 parent 251c5f2 commit 9f6f13c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
version: "3.5"

volumes:
mysql:
minio:

services:
mysql:
image: centos/mysql-80-centos8:latest
Expand All @@ -14,7 +18,7 @@ services:
ports:
- 3306:3306
volumes:
- ./data/mysql/:/var/lib/mysql/data:rw
- mysql:/var/lib/mysql/data:rw

minio:
image: quay.io/minio/minio:latest
Expand All @@ -27,7 +31,7 @@ services:
- 9000:9000
- 9001:9001
volumes:
- ./data/minio:/data:rw
- minio:/data:rw
command: server /data --console-address ":9001"
mc:
image: minio/mc:latest
Expand Down

0 comments on commit 9f6f13c

Please sign in to comment.