Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add test environment with proper docker-compose using MinIO + a…
…dd compatibility for it to AWS provider (#165) * feat: docker-compose for test environment using MinIO * feat: update AWS provider to be compatible with MinIO (and others S3 compatible ones) * feat: replace AWS_OTHER_COMPATIBLE_PROVIDER by two distinct generic parameters
- Loading branch information
Showing
6 changed files
with
96 additions
and
1 deletion.
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
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,2 @@ | ||
data/* | ||
!data/test-bucket |
Empty file.
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,62 @@ | ||
--- | ||
version: "3" | ||
services: | ||
terraboard-dev: | ||
build: | ||
context: ../ | ||
dockerfile: ./Dockerfile | ||
environment: | ||
AWS_ACCESS_KEY_ID: root | ||
AWS_SECRET_ACCESS_KEY: mypassword | ||
AWS_BUCKET: test-bucket | ||
AWS_REGION: eu-west-1 | ||
AWS_ENDPOINT: http://minio:9000/ | ||
AWS_FORCE_PATH_STYLE: "true" | ||
TERRABOARD_LOG_LEVEL: debug | ||
TERRABOARD_NO_LOCKS: "true" | ||
TERRABOARD_NO_VERSIONING: "true" | ||
DB_PASSWORD: mypassword | ||
DB_SSLMODE: disable | ||
GODEBUG: netdns=go | ||
depends_on: | ||
- "db" | ||
- "minio" | ||
volumes: | ||
- ../static:/static:ro | ||
ports: | ||
- "8080:8080" | ||
|
||
minio: | ||
image: minio/minio:latest | ||
environment: | ||
MINIO_ROOT_USER: root | ||
MINIO_ROOT_PASSWORD: mypassword | ||
expose: | ||
- "9000" | ||
ports: | ||
- "9200:9000" | ||
volumes: | ||
- ./data:/data | ||
command: server /data | ||
|
||
db: | ||
image: postgres:9.5 | ||
environment: | ||
POSTGRES_USER: gorm | ||
POSTGRES_PASSWORD: mypassword | ||
POSTGRES_DB: gorm | ||
volumes: | ||
- tb-data:/var/lib/postgresql/data | ||
|
||
pgadmin: | ||
container_name: pgadmin4_container | ||
image: dpage/pgadmin4 | ||
restart: always | ||
environment: | ||
PGADMIN_DEFAULT_EMAIL: admin@admin.com | ||
PGADMIN_DEFAULT_PASSWORD: root | ||
ports: | ||
- "5050:80" | ||
|
||
volumes: | ||
tb-data: {} |