Skip to content

Commit

Permalink
Use minio for s3 storage in dev
Browse files Browse the repository at this point in the history
  • Loading branch information
talavis committed Mar 3, 2022
1 parent 7082d49 commit ff9f747
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dds_web/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ class Config(object):
# Expected paths - these are the bind paths *inside* the container
USE_LOCAL_DB = True
LOGS_DIR = "/dds_web/logs"
SAFESPRING_URL = os.environ.get("DDS_SAFESPRING_URL", "https://example.endpoint.net")
SAFESPRING_URL = os.environ.get("DDS_SAFESPRING_URL", "http://minio:9000")
DDS_SAFESPRING_PROJECT = os.environ.get("DDS_SAFESPRING_PROJECT", "project-name.example.se")
DDS_SAFESPRING_ACCESS = os.environ.get("DDS_SAFESPRING_ACCESS", "SAFESPRINGACCESSKEY")
DDS_SAFESPRING_SECRET = os.environ.get("DDS_SAFESPRING_SECRET", "SAFESPRINGSECRETKEY")
DDS_SAFESPRING_ACCESS = os.environ.get("DDS_SAFESPRING_ACCESS", "minio")
DDS_SAFESPRING_SECRET = os.environ.get("DDS_SAFESPRING_SECRET", "minioPassword")

# Use short-lived session cookies:
PERMANENT_SESSION_LIFETIME = datetime.timedelta(hours=1)
Expand Down
15 changes: 15 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,21 @@ services:
source: $DDS_LOG_DIR
target: /dds_web/logs

minio:
image: minio/minio:RELEASE.2022-02-24T22-12-01Z
command: server /data --console-address ":9001"
ports:
- 127.0.0.1:9000:9000
- 127.0.0.1:9001:9001
environment:
MINIO_ROOT_USER: minio # access key
MINIO_ROOT_PASSWORD: minioPassword # secret key
# volumes:
# - type: bind
# source: ./minio-data
# target: /data


# redis:
# container_name: dds_redis
# image: redis:latest

0 comments on commit ff9f747

Please sign in to comment.