Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
x-proxy-build-args: &proxy-build-args
HTTP_PROXY: ${HTTP_PROXY_ARG:-}
HTTPS_PROXY: ${HTTPS_PROXY_ARG:-}
NO_PROXY: ${NO_PROXY_ARG:-localhost,127.0.0.1,gateway,gateway-dev,engine-minizinc,engine-random-search,engine-many-heuristic,frontend-dev,frontend-prod,nginx,nginx-dev}
NO_PROXY: ${NO_PROXY_ARG:-localhost,127.0.0.1,gateway,gateway-dev,engine-minizinc,engine-random-search,engine-many-heuristic,engine-evolutionary-heuristics,frontend-dev,frontend-prod,nginx,nginx-dev}

services:
gateway:
Expand All @@ -24,6 +24,7 @@ services:
- ENGINE_MINIZINC_URL=http://engine-minizinc:3000
- ENGINE_RANDOM_SEARCH_URL=http://engine-random-search:8080
- ENGINE_MANY_HEURISTIC_URL=http://engine-many-heuristic:8080
- ENGINE_EVOLUTIONARY_HEURISTICS_URL=http://engine-evolutionary-heuristics:8080
healthcheck:
test: ["CMD", "curl", "-fsS", "http://localhost:8000/health"]
interval: 10s
Expand All @@ -37,6 +38,8 @@ services:
condition: service_healthy
engine-many-heuristic:
condition: service_healthy
engine-evolutionary-heuristics:
condition: service_healthy

gateway-dev:
build:
Expand All @@ -60,6 +63,7 @@ services:
- ENGINE_MINIZINC_URL=http://engine-minizinc:3000
- ENGINE_RANDOM_SEARCH_URL=http://engine-random-search:8080
- ENGINE_MANY_HEURISTIC_URL=http://engine-many-heuristic:8080
- ENGINE_EVOLUTIONARY_HEURISTICS_URL=http://engine-evolutionary-heuristics:8080
healthcheck:
test: ["CMD", "curl", "-fsS", "http://localhost:8000/health"]
interval: 10s
Expand All @@ -73,6 +77,8 @@ services:
condition: service_healthy
engine-many-heuristic:
condition: service_healthy
engine-evolutionary-heuristics:
condition: service_healthy

engine-minizinc:
build:
Expand Down Expand Up @@ -116,6 +122,20 @@ services:
retries: 5
start_period: 30s

engine-evolutionary-heuristics:
build:
context: ./engines/evolutionary-heuristics
dockerfile: Dockerfile
args:
<<: *proxy-build-args
profiles: ["dev", "prod"]
healthcheck:
test: ["CMD", "curl", "-fsS", "http://localhost:8080/health"]
interval: 10s
timeout: 3s
retries: 5
start_period: 30s

frontend-dev:
build:
context: ./frontend
Expand Down
Loading
Loading