Skip to content

Commit

Permalink
fix: initialize minio
Browse files Browse the repository at this point in the history
  • Loading branch information
uonr committed Dec 25, 2023
1 parent d2e7e4e commit 71744b8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,16 @@ services:

store-init:
image: quay.io/minio/mc
network_mode: service:db
depends_on:
- store
entrypoint: >
/bin/sh -c "
sleep 10;
/usr/bin/mc config host add dev http://store:9000 ${MINIO_ROOT_USER} ${MINIO_ROOT_PASSWORD};
/usr/bin/mc rm -r --force dev/boluo;
/usr/bin/mc mb dev/boluo;
/usr/bin/mc policy download dev/boluo;
/usr/bin/mc config host add devminio http://127.0.0.1:9000 ${MINIO_ROOT_USER} ${MINIO_ROOT_PASSWORD};
/usr/bin/mc rm -r --force devminio/boluo;
/usr/bin/mc mb devminio/boluo;
/usr/bin/mc anonymous set public devminio/boluo;
exit 0;
"
# Add "forwardPorts": ["5432"] to **devcontainer.json** to forward PostgreSQL locally.
Expand Down

0 comments on commit 71744b8

Please sign in to comment.