Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(devops): add mock s3 service #248

Merged
merged 2 commits into from
May 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@ name: bounswe2024group1
# Production-like docker-compose setup

services:
s3mock:
image: adobe/s3mock:latest
environment:
- retainFilesOnExit=true
- initialBuckets=cuisines
- root=containers3root
ports:
- 9090:9090
- 9191:9191
volumes:
- s3mock-files:/containers3root
swagger:
image: swaggerapi/swagger-ui
environment:
Expand All @@ -28,6 +39,10 @@ services:
DB_USER: root
DB_PASSWORD: admin
SPRING_PROFILES_ACTIVE: docker
DO_SPACES_ENDPOINT: "http://s3mock:9090"
DO_SPACES_ACCESS_KEY: "---"
DO_SPACES_SECRET_KEY: "---"
DO_SPACES_BUCKET: "cuisines"
depends_on:
- db
web:
Expand All @@ -45,3 +60,4 @@ services:

volumes:
db-data:
s3mock-files:
9 changes: 9 additions & 0 deletions dev.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: bounswe2024group1-dev

services:
s3mock:
extends:
file: compose.yml
service: s3mock
swagger:
extends:
file: compose.yml
Expand All @@ -24,6 +28,10 @@ services:
DB_USER: root
DB_PASSWORD: admin
SPRING_PROFILES_ACTIVE: docker
DO_SPACES_ENDPOINT: "http://s3mock:9090"
DO_SPACES_ACCESS_KEY: "---"
DO_SPACES_SECRET_KEY: "---"
DO_SPACES_BUCKET: "cuisines"
depends_on:
- db
web:
Expand All @@ -46,3 +54,4 @@ services:
volumes:
node_modules:
db-data:
s3mock-files:
Loading