AWS S3

Note

It is assumed that you have an AWS account.

NearBeach uses Boto3 to connect to AWS. To find more information about Boto3 please go to their documentation

Instructions

Modify your docker-compose file to include the fields

  • AWS_ACCESS_KEY_ID

  • AWS_SECRET_ACCESS_KEY

  • AWS_STORAGE_BUCKET_NAME

The following is an example snippet of code

version: '3'

services:
    ...
    nearbeach:
        image: robotichead/nearbeach:latest
        container_name: nearbeach
        environment:
        - SECRET_KEY=<<Please fill>>
        - SMTP_EMAIL_HOST=<<Please fill>>
        - SMTP_EMAIL_PORT=<<Please fill>>
        - SMTP_EMAIL_HOST_USER=<<Please fill>>
        - SMTP_EMAIL_HOST_PASSWORD=<<Please fill>>
        - DB_DATABASE=<<Please fill>>
        - DB_USER=<<Please fill>>
        - DB_PASSWORD=<<Please fill>>
        - DB_HOST=nearbeach-db
        - DB_ENGINE=mysql
        - DB_PORT=3306
        - ADMIN_USERNAME=<<Please fill>>
        - ADMIN_EMAIL=<<Please fill>>
        - CSRF_TRUSTED_URLS=<<https://yourdomain.com.au>>
        - AWS_ACCESS_KEY_ID=<<Please fill>>
        - AWS_SECRET_ACCESS_KEY=<<Please fill>>
        - AWS_STORAGE_BUCKET_NAME=<<Please fill>>
        volumes:
    ...

Please follow AWS’ guild on setting up S3 IAM credentials

AWS Storage Bucket Name can be grabbed from the S3 bucket when creating (or after).