forked from devfullcycle/imersao18
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
aula 05 - integração do kong com todos os sistemas
- Loading branch information
1 parent
46fe4f5
commit 0a883bd
Showing
54 changed files
with
1,192 additions
and
810 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
include: | ||
- golang/docker-compose.yaml | ||
- nestjs-partners-api/docker-compose.yaml | ||
- nextjs-frontend/docker-compose.yaml | ||
- kong-api-gateway/docker-compose.with-dbless.yaml |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
FROM golang:1.22.3-alpine3.20 | ||
|
||
WORKDIR /app | ||
|
||
CMD tail -f /dev/null |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,42 @@ | ||
version: '3.8' | ||
|
||
services: | ||
mysql: | ||
image: mysql:8.0 | ||
container_name: test-mysql | ||
|
||
golang: | ||
build: . | ||
ports: | ||
- "8080:8080" | ||
volumes: | ||
- .:/app | ||
extra_hosts: | ||
- "host.docker.internal:host-gateway" | ||
|
||
golang-mysql: | ||
image: mysql:8.0.30-debian | ||
#container_name: test-mysql | ||
environment: | ||
MYSQL_ROOT_PASSWORD: root | ||
MYSQL_DATABASE: test_db | ||
MYSQL_USER: test_user | ||
MYSQL_PASSWORD: test_password | ||
ports: | ||
- "3306:3306" | ||
# ports: | ||
# - "3307:3306" | ||
healthcheck: | ||
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"] | ||
interval: 10s | ||
timeout: 5s | ||
retries: 3 | ||
volumes: | ||
- ./mysql-init:/docker-entrypoint-initdb.d | ||
|
||
|
||
# C:\Windows\system32\drivers\etc\hosts (bloco de notas em modo administrador) | ||
|
||
# 127.0.0.1 host.docker.internal | ||
|
||
## Linux ou Mac (Docker Desktop) | ||
|
||
# /etc/hosts | ||
|
||
# 127.0.0.1 host.docker.internal | ||
|
||
# host.docker.internal:8000/partner1 | ||
# host.docker.internal:8000/partner2 |
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
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
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
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
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
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
Oops, something went wrong.