From 490e2e2f72403a0aefcc55341e2d266a6d47e8c2 Mon Sep 17 00:00:00 2001 From: Xander Vertegaal Date: Mon, 2 Dec 2024 22:36:21 +0100 Subject: [PATCH] Add Vulcan container --- compose.yaml | 35 +++++++++++++++++++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/compose.yaml b/compose.yaml index 474cd7e..78d25e3 100644 --- a/compose.yaml +++ b/compose.yaml @@ -128,7 +128,7 @@ services: restart: unless-stopped environment: - MG_PARSER_PORT=32770 - - FLASK_DEBUG=0 + - MG_PARSER_DEBUG=0 command: > gunicorn -w 1 -b 0.0.0.0:32770 'app:create_app()' --capture-output @@ -145,11 +145,42 @@ services: restart: no profiles: ["dev"] environment: - - FLASK_DEBUG=1 + - MG_PARSER_DEBUG=1 command: flask run --host 0.0.0.0 --port 32770 ports: - "32770:32770" + vulcan-prod: &vulcan-prod + image: pp-vulcan-prod + container_name: pp-vulcan + build: + context: ../vulcan-parseport + profiles: ["prod"] + restart: unless-stopped + environment: + - VULCAN_DEBUG=0 + - VULCAN_PORT=32771 + command: > + gunicorn -w 1 -b 0.0.0.0:32771 'app:create_app()' + --capture-output + --access-logfile /logs/access_log + --error-logfile /logs/error_log + expose: + - "32771" + volumes: + - ../../log/vulcan:/logs + + vulcan-dev: + <<: *vulcan-prod + image: pp-vulcan-dev + restart: no + profiles: ["dev"] + environment: + - VULCAN_DEBUG=1 + command: flask run --host 0.0.0.0 --port 32771 + ports: + - "32771:32771" + networks: parseport: