-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #325 from esuomi/TIS-559/s3_blob_storage
AWS S3 blob storage
- Loading branch information
Showing
11 changed files
with
648 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: 'uttu' | ||
|
||
services: | ||
db: | ||
container_name: '${COMPOSE_PROJECT_NAME}_postgis13' | ||
image: postgis/postgis:13-3.3 | ||
platform: linux/amd64 | ||
restart: always | ||
environment: | ||
POSTGRES_USER: uttu | ||
POSTGRES_PASSWORD: uttu | ||
POSTGRES_DB: uttu | ||
ports: | ||
- "5432:5432" | ||
volumes: | ||
- postgres-data:/var/lib/postgresql | ||
networks: | ||
- uttu | ||
|
||
localstack: | ||
container_name: "${COMPOSE_PROJECT_NAME}_localstack" | ||
profiles: ["aws"] | ||
image: localstack/localstack:3.4.0 | ||
ports: | ||
- "4566:4566" # LocalStack Gateway | ||
- "4510-4559:4510-4559" # external services port range | ||
environment: | ||
- DEBUG=${DEBUG-} | ||
- DOCKER_HOST=unix:///var/run/docker.sock | ||
- DISABLE_EVENTS=1 | ||
- SERVICES=s3 | ||
- AWS_ACCESS_KEY_ID=localstack | ||
- AWS_SECRET_ACCESS_KEY=localstack | ||
- AWS_DEFAULT_REGION=eu-north-1 | ||
volumes: | ||
- "/var/run/docker.sock:/var/run/docker.sock" | ||
- "${LOCALSTACK_VOLUME_DIR:-./volume}:/var/lib/localstack" | ||
- "./scripts/init-localstack.sh:/etc/localstack/init/ready.d/init-localstack.sh" | ||
networks: | ||
- uttu | ||
|
||
volumes: | ||
postgres-data: | ||
|
||
networks: | ||
uttu: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
|
||
# -- > Create S3 bucket for blob storage | ||
awslocal s3api create-bucket --bucket 'local-blobstore-exports' --create-bucket-configuration LocationConstraint=eu-north-1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.