Last active
February 23, 2020 11:50
-
-
Save angellandros/d4291be0f1d9468155814ff4ac1c8b31 to your computer and use it in GitHub Desktop.
Sample Docker-Compose config file for Express.js with TSOA and Swagger UI
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
version: "3.2" | |
services: | |
web: | |
image: aerabi/express-ts | |
build: . | |
ports: | |
- "3000:3000" | |
environment: | |
NODE_ENV : docker | |
volumes: | |
- .:/usr/src/app | |
swagger: | |
image: swaggerapi/swagger-ui | |
ports: | |
- "8080:8080" | |
environment: | |
SWAGGER_JSON: /swagger/swagger.json | |
volumes: | |
- type: bind | |
source: ./api/dist | |
target: /swagger |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment