diff --git a/README.md b/README.md index f72d153..051b549 100644 --- a/README.md +++ b/README.md @@ -71,6 +71,22 @@ host system for storage, pass `-v/host-path:/data`. +### Docker Compose + +**1. Configure the default secrets as environment variables** + +```yaml +environment: + RGW_DEFAULT_USER_ACCESS_KEY: "test" + RGW_DEFAULT_USER_SECRET_KEY: "test" +``` + +**2. Run docker-compose** + +```bash +docker-compose up -d +``` + ## Documentation You can access our documentation [here][docs-link]. diff --git a/docker-compose.yaml b/docker-compose.yaml index 3b11d84..73ffe50 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -4,9 +4,6 @@ services: s3gw: image: quay.io/s3gw/s3gw:latest restart: always - command: - - "--rgw-backend-store" - - "sfs" ports: - "7480:7480" environment: @@ -24,18 +21,7 @@ services: ports: - "8080:8080" environment: - RGW_SERVICE_URL: "http://localhost:3080" - - proxy: - image: docker.io/nginx:latest - restart: always - depends_on: - - s3gw-ui - ports: - - "80:80" - - "3080:3080" - volumes: - - ./nginx.conf:/etc/nginx/conf.d/default.conf:ro + S3GW_SERVICE_URL: "http://s3gw:7480" volumes: data: diff --git a/nginx.conf b/nginx.conf deleted file mode 100644 index 3ad59d9..0000000 --- a/nginx.conf +++ /dev/null @@ -1,35 +0,0 @@ -server { - listen 80; - server_name s3gw-ui-proxy; - - location / { - proxy_pass http://s3gw-ui:8080/; - } -} - -server { - listen 3080; - server_name s3gw-proxy; - - client_max_body_size 10M; - - location / { - - if ($request_method = 'OPTIONS') { - add_header 'Access-Control-Max-Age' 1728000; - add_header 'Access-Control-Allow-Origin' '*'; - add_header 'Access-Control-Allow-Headers' '*'; - add_header 'Access-Control-Allow-Methods' 'DELETE,GET,HEAD,POST,PUT'; - add_header 'Content-Type' 'application/json'; - add_header 'Content-Length' 0; - return 204; - } - - add_header 'Access-Control-Allow-Origin' '*' always; - add_header 'Access-Control-Allow-Headers' '*' always; - add_header 'Access-Control-Allow-Methods' 'DELETE,GET,HEAD,POST,PUT' always; - add_header 'Access-Control-Expose-Headers' 'ETag'; - - proxy_pass http://s3gw:7480/; - } -}