Skip to content

Commit

Permalink
Merge pull request #18 from awhipp/build/pinning-docker-versions
Browse files Browse the repository at this point in the history
build: 💚 Pinning docker versions
  • Loading branch information
awhipp authored Mar 18, 2024
2 parents 257f97b + 4d4eb81 commit 1d12f34
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: "3"
services:
localstack:
image: localstack/localstack
image: localstack/localstack:3.2.0
container_name: localstack
environment:
- SERVICES=sqs,s3
Expand Down
2 changes: 2 additions & 0 deletions example.env
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ TIMESCALE_USER=postgres
TIMESCALE_PASSWORD=postgres

AWS_ENDPOINT_URL=http://localhost:4566

APP_DEBUG=False
8 changes: 7 additions & 1 deletion foresight/interface_service/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

import json
import logging
import os

import dotenv
from flask import Flask
from flask import jsonify
from flask import render_template
Expand All @@ -12,6 +14,9 @@

app = Flask(__name__)

# Load environment variables
dotenv.load_dotenv()

# Setup logging and log timestamp prepend
logging.basicConfig(
format="%(asctime)s %(levelname)-8s %(message)s",
Expand Down Expand Up @@ -58,4 +63,5 @@ def get_latest_data():


if __name__ == "__main__":
app.run(debug=True)
debug_mode = os.getenv("APP_DEBUG", "False").lower() == "true"
app.run(debug=debug_mode)

0 comments on commit 1d12f34

Please sign in to comment.