networks: loki: name: loki-net # replace the default domain .loki-net services: # container with tools dns (nslookup, tcptraceroute, etc). Use just for debug # dns-tools: # image: jonlabelle/network-tools # container_name: dns-tools # command: tail -f /dev/null # stdin_open: true # tty: true # networks: # - loki # minio server service minio-server: image: minio/minio:latest container_name: minio-server hostname: myhostname restart: always volumes: - ${MINIO_DATA_ROOT_DIR}:/data ports: - "9000:9000" - "9001:9001" environment: MINIO_ROOT_USER: ${MINIO_ACCESS_KEY} MINIO_ROOT_PASSWORD: ${MINIO_SECRET_KEY} command: server /data --console-address ":9001" networks: - loki # service not necessary, used here to explain how to interact from the container # minio-client: # image: minio/mc # # insure that the server container is running before building the client # depends_on: # - minio-server # entrypoint: > # /bin/sh -c " # /usr/bin/mc admin info play; # /usr/bin/mc alias set myminio http://minio-server:9000 ${MINIO_ACCESS_KEY} ${MINIO_SECRET_KEY}; # /usr/bin/mc mb myminio/test-bucket; # /usr/bin/mc mb myminio/loki; # echo 'my content' > myfile.txt; # /usr/bin/mc cp myfile.txt myminio/test-bucket; # exit 0; # " # networks: # - loki #volumes: # prometheus: # loki: