Skip to content

Commit

Permalink
Merge pull request #248 from bounswe/devops/feature/247-s3mock
Browse files Browse the repository at this point in the history
feat(devops): add mock s3 service
  • Loading branch information
mmtftr authored May 15, 2024
2 parents 2c047ae + 24210e6 commit 182c28c
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
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:

0 comments on commit 182c28c

Please sign in to comment.