Skip to content

Commit

Permalink
Allow deployment compose to be more flexible
Browse files Browse the repository at this point in the history
  • Loading branch information
FranciscoAT committed Feb 29, 2024
1 parent f46bee6 commit 12fe38f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .template.env
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ POSTGRES_HOST=localhost
UID=
GID=
POSTGRES_PORT_EXTERNAL=
BOT_LOG_PATH=
WEB_LOG_PATH=
2 changes: 1 addition & 1 deletion applications/web/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def _init_loggers(log_path: str | None = None) -> None:
arguments = arg_parser.parse_args()

if arguments.debug:
os.environ["DEBUG"] = 1
os.environ["DEBUG"] = "1"

_init_loggers(log_path=arguments.logs)

Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ services:
USER_ID: $UID
GROUP_ID: $GID
volumes:
- ./logs/bot:/opt/logs
- $BOT_LOG_PATH:/opt/logs
restart: always
depends_on:
- postgres
Expand All @@ -33,7 +33,7 @@ services:
USER_ID: $UID
GROUP_ID: $GID
volumes:
- ./logs/web:/opt/logs
- $WEB_LOG_PATH:/opt/logs
ports:
- "5000:5000"
restart: always
Expand Down

0 comments on commit 12fe38f

Please sign in to comment.