Skip to content

Commit

Permalink
- Added minio composition
Browse files Browse the repository at this point in the history
  • Loading branch information
doublebyte1 committed May 25, 2022
1 parent e98488f commit 425cbd3
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docker-compose-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ services:
- ./pygeoapi/docker.config.local.yml:/pygeoapi/local.config-orig.yml
- ./pygeoapi/es-entrypoint.sh:/es-entrypoint.sh
- ./pygeoapi/wait-for-elasticsearch.sh:/wait-for-elasticsearch.sh
#- /home/joana/git/pygeoapi/tests/data/tiles/obs:/pygeoapi/tests/data/tiles/obs
- ./data:/data
environment:
- "DATASET=masked"
networks:
Expand Down
69 changes: 69 additions & 0 deletions docker-compose-minio.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# =================================================================
#
# Authors: doublebyte <[email protected]>
#
# Copyright (c) 2021 Joana Simoes
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation
# files (the "Software"), to deal in the Software without
# restriction, including without limitation the rights to use,
# copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following
# conditions:
#
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.
#
# =================================================================

version: '3.3'

services:
minio:
image: minio/minio
container_name: minio
ports:
- 9000:9000
environment:
MINIO_ACCESS_KEY: pygeoapi
MINIO_SECRET_KEY: pygeoapi
networks:
- minioNet
volumes:
- ./data:/data
- minio:/root/.minio/
command: server --address 0.0.0.0:9000 /data

volumes:
minio: {}

networks:
minioNet:
name: minioNet
driver: bridge

# TODO: Run this, when containers are running!
# docker run -it -v ${PWD}/data:/data \
# --network host --add-host="host.docker.internal:127.0.0.1" \
# --entrypoint=/bin/sh minio/mc

# /usr/bin/mc config host rm local;
# /usr/bin/mc config host add \
# --quiet --api s3v4 local http://127.0.0.1:9000 \
# pygeoapi pygeoapi;
# /usr/bin/mc mb local/shops/;
# mv /data/tiles/* /data/shops/;
# /usr/bin/mc policy set public local/shops;
# rm -rf /data/tiles;
# exit

0 comments on commit 425cbd3

Please sign in to comment.