Skip to content

Commit

Permalink
aws logging with watchtower and health check
Browse files Browse the repository at this point in the history
aws logging with watchtower and health check (flake8 correction)
  • Loading branch information
milesAraya committed Sep 21, 2024
1 parent 28513e8 commit 2fff86d
Show file tree
Hide file tree
Showing 8 changed files with 114 additions and 217 deletions.
8 changes: 4 additions & 4 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
version: "3"

services:
studio-dev-be:
platform: linux/amd64
build:
context: .
dockerfile: studio/config/docker/Dockerfile.dev
image: 637423646530.dkr.ecr.ap-northeast-1.amazonaws.com/optinist-cloud:latest
working_dir: /app
volumes:
- .:/app
Expand All @@ -13,7 +13,7 @@ services:
- ../optinist-docker-volumes/logs/:/app/logs
- ../optinist-docker-volumes/studio_data/:/app/studio_data
ports:
- "127.0.0.1:8000:8000"
- "0.0.0.0:8000:8000"
command: poetry run python main.py --reload --host 0.0.0.0 --port 8000
environment:
PYTHONPATH: /app/
Expand All @@ -26,7 +26,7 @@ services:
volumes:
- ./frontend/:/app/frontend/:cached
ports:
- "127.0.0.1:3000:3000"
- "0.0.0.0:3000:3000"
command: ash -c 'yarn install && yarn start'
environment:
TZ: Asia/Tokyo
5 changes: 5 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# run backend main module.
from studio.app.common.core.logger import AppLogger

logger = AppLogger.get_logger()

if __name__ == "__main__":
from studio.__main_unit__ import main

logger.info("Starting Optinist application")
main(develop_mode=True)
Loading

0 comments on commit 2fff86d

Please sign in to comment.