Skip to content

Commit

Permalink
MARP-662 Mount Docker container to read file
Browse files Browse the repository at this point in the history
  • Loading branch information
tvtphuc-axonivy committed Jul 23, 2024
1 parent e3314fd commit c332ffc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion marketplace-build/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,14 @@ services:
service:
container_name: marketplace-service
restart: always
volumns:
- /home/axonivy/marketplace/data/market-installations.json: /home/data/market-installation.json
environment:
- MONGODB_HOST=${SERVICE_MONGODB_HOST}
- MONGODB_DATABASE=${SERVICE_MONGODB_DATABASE}
- MONGODB_USERNAME=${SERVICE_MONGODB_USER}
- MONGODB_PASSWORD=${SERVICE_MONGODB_PASSWORD}
- MARKET_GITHUB_TOKEN=${MARKET_GITHUB_TOKEN}
- MARKETPLACE_INSTALLATION_URL=${MARKETPLACE_INSTALLATION_URL}
build:
context: ../marketplace-service
dockerfile: Dockerfile
Expand Down
4 changes: 2 additions & 2 deletions marketplace-build/release/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ services:
service:
image: ghcr.io/axonivy-market/marketplace-service:latest
restart: always
volumns:
- /home/axonivy/marketplace/data/market-installations.json: /home/data/market-installation.json
environment:
- MONGODB_HOST=${SERVICE_MONGODB_HOST}
- MONGODB_DATABASE=${SERVICE_MONGODB_DATABASE}
- MONGODB_USERNAME=${SERVICE_MONGODB_USER}
- MONGODB_PASSWORD=${SERVICE_MONGODB_PASSWORD}
- MARKET_GITHUB_TOKEN=${MARKET_GITHUB_TOKEN}
- MARKETPLACE_INSTALLATION_URL=${MARKETPLACE_INSTALLATION_URL}

volumes:
mongodata:
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ server.forward-headers-strategy=framework
springdoc.api-docs.path=/api-docs
springdoc.swagger-ui.path=/swagger-ui.html
market.cors.allowed.origin.maxAge=3600
synchronized.installation.counts.path=${MARKETPLACE_INSTALLATION_URL}
synchronized.installation.counts.path='/home/data/market-installation.json'
market.github.token=${MARKET_GITHUB_TOKEN}
logging.level.org.springframework.security=DEBUG
spring.security.oauth2.client.registration.github.client-id=<replace-with-your-client-id>
Expand Down

0 comments on commit c332ffc

Please sign in to comment.