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
jenkins: | |
build: . | |
ports: | |
- "8080:8080" | |
- "50000:50000" | |
volumes: | |
- ./jenkins_home:/var/jenkins_home |
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
registry: | |
image: registry:2 | |
ports: | |
- "5000:5000" | |
volumes: | |
- './data:/var/lib/registry' |
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
servidorzinho: | |
image: ip-do-registry:5000/servidorzinho | |
ports: | |
- "80:80" | |
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
registry: | |
image: registry:2 | |
ports: | |
- "5000:5000" | |
volumes: | |
- './data:/var/lib/registry' | |
- './auth:/auth' | |
environment: | |
REGISTRY_AUTH: htpasswd | |
REGISTRY_AUTH_HTPASSWD_PATH: /auth/htpasswd |
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' | |
services: | |
api: | |
image: msfidelis/example-api | |
ports: | |
- "80:80" | |
#Configs de Deploy do Service | |
deploy: | |
# Quantos containers vão ser stardados no Deploy |
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
{ | |
"require": { | |
"slim/slim": "^3.8" | |
} | |
} |
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
<?php | |
use \Psr\Http\Message\ServerRequestInterface as Request; | |
use \Psr\Http\Message\ResponseInterface as Response; | |
require './vendor/autoload.php'; | |
$app = new \Slim\App; | |
/** | |
* Inicio do bang :) |
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
<?php | |
use \Psr\Http\Message\ServerRequestInterface as Request; | |
use \Psr\Http\Message\ResponseInterface as Response; | |
require './vendor/autoload.php'; | |
$app = new \Slim\App; | |
/** | |
* Lista de todos os livros |
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
<?php | |
use \Psr\Http\Message\ServerRequestInterface as Request; | |
use \Psr\Http\Message\ResponseInterface as Response; | |
require './vendor/autoload.php'; | |
$app = new \Slim\App; | |
/** | |
* Lista de todos os livros |
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
<?php | |
/** | |
* Lista de todos os livros | |
*/ | |
$app->get('/book', function (Request $request, Response $response) use ($app) { | |
$return = $response->withJson(['msg' => 'Lista de Livros'], 200) | |
->withHeader('Content-type', 'application/json'); | |
return $return; | |
}); |