Skip to content

Commit 2c3960d

Browse files
authored
Merge pull request #431 from CarlSchwan/carl/minio
Minio + pre-signed urls
2 parents a728835 + 824fd6a commit 2c3960d

2 files changed

Lines changed: 15 additions & 7 deletions

File tree

docker-compose.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ services:
4343
- stable32${DOMAIN_SUFFIX}
4444
- mail${DOMAIN_SUFFIX}
4545
- sso${DOMAIN_SUFFIX}
46+
- minio${DOMAIN_SUFFIX}
4647
- imap${DOMAIN_SUFFIX}
4748
- collabora${DOMAIN_SUFFIX}
4849
- codedev${DOMAIN_SUFFIX}
@@ -61,6 +62,7 @@ services:
6162
- phpmyadmin${DOMAIN_SUFFIX}
6263
- talk-signaling${DOMAIN_SUFFIX}
6364
- talk-recording${DOMAIN_SUFFIX}
65+
- minio${DOMAIN_SUFFIX}
6466
extra_hosts:
6567
- host.docker.internal:host-gateway
6668

@@ -790,7 +792,7 @@ services:
790792
- "${IP_BIND:-127.0.0.1}:${PORTBASE:-800}8:80"
791793

792794
saml:
793-
image: unicon/simplesamlphp
795+
image: unicon/simplesamlphp
794796
volumes:
795797
- ./docker/configs/var-simplesamlphp/config:/var/simplesamlphp/config
796798
- ./docker/configs/var-simplesamlphp/cert:/var/simplesamlphp/cert
@@ -899,10 +901,12 @@ services:
899901
image: minio/minio
900902
environment:
901903
VIRTUAL_HOST: minio${DOMAIN_SUFFIX}
902-
VIRTUAL_PORT: 9001
904+
VIRTUAL_PORT: 9000
903905
MINIO_ROOT_USER: nextcloud
904906
MINIO_ROOT_PASSWORD: nextcloud
905907
MINIO_BROWSER_REDIRECT_URL: ${PROTOCOL}://minio${DOMAIN_SUFFIX}
908+
ports:
909+
- "9001:9001"
906910
volumes:
907911
- objectstorage_minio:/data
908912
command: server /data --console-address :9001

docker/configs/storage.config.php

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@
2020
'bucket' => 'nc-' . $hostname,
2121
'key' => 'nextcloud',
2222
'secret' => 'nextcloud',
23-
'hostname' => 'minio',
24-
'port' => '9000',
23+
'hostname' => 'minio.local',
24+
'port' => '80',
25+
'proxy' => 'minio:9000',
2526
'use_ssl' => false,
2627
'use_path_style' => true,
28+
'use_presigned_url' => true,
2729
'autocreate' => true,
2830
'verify_bucket_exists' => true,
2931
),
@@ -42,11 +44,13 @@
4244
'bucket' => 'nc-' . $hostname,
4345
'key' => 'nextcloud',
4446
'secret' => 'nextcloud',
45-
'hostname' => 'minio',
46-
'port' => '9000',
47+
'hostname' => 'minio.local',
48+
'port' => '80',
49+
'proxy' => 'minio:9000',
50+
'use_presigned_url' => true,
4751
'use_ssl' => false,
4852
'use_path_style' => true,
4953
),
5054
),
5155
];
52-
}
56+
}

0 commit comments

Comments
 (0)