Skip to content

Instantly share code, notes, and snippets.

@angellandros
Last active February 23, 2020 11:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save angellandros/d4291be0f1d9468155814ff4ac1c8b31 to your computer and use it in GitHub Desktop.
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
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