Skip to content
This repository was archived by the owner on May 23, 2023. It is now read-only.

Commit 282d399

Browse files
Algumas pequenas atualizações
1 parent 1d8bfbd commit 282d399

File tree

6 files changed

+236
-228
lines changed

6 files changed

+236
-228
lines changed

examples/lambda_api/docker-compose.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ services:
1818
ports:
1919
- 5000:5000
2020
networks:
21-
- service-python
21+
- service-python-v1
2222
volumes:
2323
- ./:/app
2424
redis:
@@ -28,7 +28,7 @@ services:
2828
expose:
2929
- 6379
3030
networks:
31-
- service-python
31+
- service-python-v1
3232
mysql:
3333
image: mysql:5.7.22
3434
ports:
@@ -37,7 +37,7 @@ services:
3737
MYSQL_DATABASE: store
3838
MYSQL_ROOT_PASSWORD: store
3939
networks:
40-
- service-python
40+
- service-python-v1
4141
localstack:
4242
image: localstack/localstack
4343
privileged: true
@@ -55,10 +55,10 @@ services:
5555
DEBUG: 1
5656
HOSTNAME_EXTERNAL: localstack
5757
networks:
58-
- service-python
58+
- service-python-v1
5959
volumes:
6060
- /var/run/docker.sock:/var/run/docker.sock
6161
- /tmp/localstack:/tmp/localstack
6262
networks:
63-
service-python:
63+
service-python-v1:
6464
external: true

examples/lambda_api/env/development.env

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ LOCAL_API_SERVER=http://localhost:5000
1414
LOCAL_API_SERVER_DESCRIPTION=Development server
1515
REDIS_HOST=redis
1616
REDIS_PORT=6379
17-
DB_HOST=mysql
17+
DB_HOST=localhost
1818
DB_USER=root
1919
DB_PASSWORD=store
2020
DB=store
2121
APP_BUCKET=test-bucket
22-
APP_LAMBDA=test-lambda
22+
APP_LAMBDA=test-lambda

examples/lambda_api/flambda_app/services/healthcheck_manager.py

+1
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,5 @@ def check(self):
3939
# example with a lambda check
4040
# self.healthcheck_service.add_check("internal", lambda: HealthCheckResult.unhealthy("connect"), ["example"])
4141

42+
4243
return self.healthcheck_service.get_response()

0 commit comments

Comments
 (0)