Skip to content

Commit

Permalink
feat(devops): add mock s3 service
Browse files Browse the repository at this point in the history
  • Loading branch information
mmtftr committed May 15, 2024
1 parent 2c047ae commit 5de4aea
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
12 changes: 12 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 Down Expand Up @@ -45,3 +56,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: "minioadmin"
DO_SPACES_SECRET_KEY: "minioadmin"
DO_SPACES_BUCKET: "cuisines"
depends_on:
- db
web:
Expand All @@ -46,3 +54,4 @@ services:
volumes:
node_modules:
db-data:
s3mock-files:

0 comments on commit 5de4aea

Please sign in to comment.