API en NestJS que accede a una base de datos MySQL con datos de libros.
3000URL/docsgetAll: URL/api/v1/booksEs necesario configurar las variables de entorno siguientes
TUTORIAL_HOST: IP o nombre DNS del servidor MySQLTUTORIAL_PORT: Puerto del servidor MySQLTUTORIAL_USER: 'sg'TUTORIAL_PASSWORD: 'my_password'TUTORIAL_DATABASE: 'SG'docker-compose.ymlversion: '2'
services:
books_api:
container_name: books_api
restart: always
image: ualmtorres/books-api:v0
environment:
TUTORIAL_HOST: '192.168.68.147'
TUTORIAL_PORT: 3306
TUTORIAL_USER: 'sg'
TUTORIAL_PASSWORD: 'my_password'
TUTORIAL_DATABASE: 'SG'
ports:
- "80:3000"
Content type
Image
Digest
Size
110.9 MB
Last updated
almost 6 years ago
docker pull ualmtorres/books-api:v0