mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-23 13:09:00 +00:00
Migrate the docker compose files
This commit is contained in:
parent
9f1649636e
commit
37ae8cb33c
4
run/env/service.env
vendored
4
run/env/service.env
vendored
@ -1,7 +1,5 @@
|
|||||||
WMSA_HOME=run/
|
JDK_JAVA_OPTIONS="--enable-preview -da -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=4000 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false"
|
||||||
JAVA_OPTS="--enable-preview -da -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=4000 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false"
|
|
||||||
JAVA_TOOL_OPTIONS="--enable-preview -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5000"
|
JAVA_TOOL_OPTIONS="--enable-preview -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5000"
|
||||||
EXECUTOR_SERVICE_OPTS=""
|
|
||||||
CONVERTER_PROCESS_OPTS="-Dservice-name=converter"
|
CONVERTER_PROCESS_OPTS="-Dservice-name=converter"
|
||||||
CRAWLER_PROCESS_OPTS="-Dservice-name=crawler"
|
CRAWLER_PROCESS_OPTS="-Dservice-name=crawler"
|
||||||
LOADER_PROCESS_OPTS="-Dservice-name=loader"
|
LOADER_PROCESS_OPTS="-Dservice-name=loader"
|
||||||
|
@ -8,21 +8,12 @@ x-svc: &service
|
|||||||
- logs:/var/log/wmsa
|
- logs:/var/log/wmsa
|
||||||
networks:
|
networks:
|
||||||
- wmsa
|
- wmsa
|
||||||
healthcheck:
|
depends_on:
|
||||||
test: curl -f http://localhost:80/internal/ping || exit 1
|
- mariadb
|
||||||
start_period: 1s
|
- zookeeper
|
||||||
interval: 5s
|
|
||||||
timeout: 5s
|
|
||||||
retries: 60
|
|
||||||
x-p1: &partition-1
|
x-p1: &partition-1
|
||||||
env_file:
|
env_file:
|
||||||
- "${INSTALL_DIR}/env/service.env"
|
- "${INSTALL_DIR}/env/service.env"
|
||||||
healthcheck:
|
|
||||||
test: curl -f http://localhost:80/internal/ping || exit 1
|
|
||||||
start_period: 1s
|
|
||||||
interval: 5s
|
|
||||||
timeout: 5s
|
|
||||||
retries: 60
|
|
||||||
volumes:
|
volumes:
|
||||||
- conf:/wmsa/conf:ro
|
- conf:/wmsa/conf:ro
|
||||||
- model:/wmsa/model
|
- model:/wmsa/model
|
||||||
@ -37,28 +28,22 @@ x-p1: &partition-1
|
|||||||
- wmsa
|
- wmsa
|
||||||
environment:
|
environment:
|
||||||
- "WMSA_SERVICE_NODE=1"
|
- "WMSA_SERVICE_NODE=1"
|
||||||
|
depends_on:
|
||||||
|
- mariadb
|
||||||
|
- zookeeper
|
||||||
services:
|
services:
|
||||||
index-service-1:
|
index-service-1:
|
||||||
<<: *partition-1
|
<<: *partition-1
|
||||||
image: "marginalia/index-service"
|
image: "marginalia/index-service"
|
||||||
container_name: "index-service-1"
|
container_name: "index-service-1"
|
||||||
depends_on:
|
|
||||||
control-service:
|
|
||||||
condition: service_healthy
|
|
||||||
executor-service-1:
|
executor-service-1:
|
||||||
<<: *partition-1
|
<<: *partition-1
|
||||||
image: "marginalia/executor-service"
|
image: "marginalia/executor-service"
|
||||||
container_name: "executor-service-1"
|
container_name: "executor-service-1"
|
||||||
depends_on:
|
|
||||||
control-service:
|
|
||||||
condition: service_healthy
|
|
||||||
query-service:
|
query-service:
|
||||||
<<: *service
|
<<: *service
|
||||||
image: "marginalia/query-service"
|
image: "marginalia/query-service"
|
||||||
container_name: "query-service"
|
container_name: "query-service"
|
||||||
depends_on:
|
|
||||||
control-service:
|
|
||||||
condition: service_healthy
|
|
||||||
expose:
|
expose:
|
||||||
- 80
|
- 80
|
||||||
labels:
|
labels:
|
||||||
|
@ -8,21 +8,12 @@ x-svc: &service
|
|||||||
- logs:/var/log/wmsa
|
- logs:/var/log/wmsa
|
||||||
networks:
|
networks:
|
||||||
- wmsa
|
- wmsa
|
||||||
healthcheck:
|
depends_on:
|
||||||
test: curl -f http://localhost:80/internal/ping || exit 1
|
- mariadb
|
||||||
start_period: 1s
|
- zookeeper
|
||||||
interval: 5s
|
|
||||||
timeout: 5s
|
|
||||||
retries: 60
|
|
||||||
x-p1: &partition-1
|
x-p1: &partition-1
|
||||||
env_file:
|
env_file:
|
||||||
- "${INSTALL_DIR}/env/service.env"
|
- "${INSTALL_DIR}/env/service.env"
|
||||||
healthcheck:
|
|
||||||
test: curl -f http://localhost:80/internal/ping || exit 1
|
|
||||||
start_period: 1s
|
|
||||||
interval: 5s
|
|
||||||
timeout: 5s
|
|
||||||
retries: 60
|
|
||||||
volumes:
|
volumes:
|
||||||
- conf:/wmsa/conf:ro
|
- conf:/wmsa/conf:ro
|
||||||
- model:/wmsa/model
|
- model:/wmsa/model
|
||||||
@ -35,17 +26,14 @@ x-p1: &partition-1
|
|||||||
- uploads-1:/uploads
|
- uploads-1:/uploads
|
||||||
networks:
|
networks:
|
||||||
- wmsa
|
- wmsa
|
||||||
|
depends_on:
|
||||||
|
- mariadb
|
||||||
|
- zookeeper
|
||||||
environment:
|
environment:
|
||||||
- "WMSA_SERVICE_NODE=1"
|
- "WMSA_SERVICE_NODE=1"
|
||||||
x-p2: &partition-2
|
x-p2: &partition-2
|
||||||
env_file:
|
env_file:
|
||||||
- "${INSTALL_DIR}/env/service.env"
|
- "${INSTALL_DIR}/env/service.env"
|
||||||
healthcheck:
|
|
||||||
test: curl -f http://localhost:80/internal/ping || exit 1
|
|
||||||
start_period: 1s
|
|
||||||
interval: 5s
|
|
||||||
timeout: 5s
|
|
||||||
retries: 60
|
|
||||||
volumes:
|
volumes:
|
||||||
- conf:/wmsa/conf:ro
|
- conf:/wmsa/conf:ro
|
||||||
- model:/wmsa/model
|
- model:/wmsa/model
|
||||||
@ -58,6 +46,9 @@ x-p2: &partition-2
|
|||||||
- uploads-2:/uploads
|
- uploads-2:/uploads
|
||||||
networks:
|
networks:
|
||||||
- wmsa
|
- wmsa
|
||||||
|
depends_on:
|
||||||
|
- mariadb
|
||||||
|
- zookeeper
|
||||||
environment:
|
environment:
|
||||||
- "WMSA_SERVICE_NODE=2"
|
- "WMSA_SERVICE_NODE=2"
|
||||||
services:
|
services:
|
||||||
@ -65,37 +56,22 @@ services:
|
|||||||
<<: *partition-1
|
<<: *partition-1
|
||||||
image: "marginalia/index-service"
|
image: "marginalia/index-service"
|
||||||
container_name: "index-service-1"
|
container_name: "index-service-1"
|
||||||
depends_on:
|
|
||||||
control-service:
|
|
||||||
condition: service_healthy
|
|
||||||
executor-service-1:
|
executor-service-1:
|
||||||
<<: *partition-1
|
<<: *partition-1
|
||||||
image: "marginalia/executor-service"
|
image: "marginalia/executor-service"
|
||||||
container_name: "executor-service-1"
|
container_name: "executor-service-1"
|
||||||
depends_on:
|
|
||||||
control-service:
|
|
||||||
condition: service_healthy
|
|
||||||
index-service-2:
|
index-service-2:
|
||||||
<<: *partition-2
|
<<: *partition-2
|
||||||
image: "marginalia/index-service"
|
image: "marginalia/index-service"
|
||||||
container_name: "index-service-2"
|
container_name: "index-service-2"
|
||||||
depends_on:
|
|
||||||
control-service:
|
|
||||||
condition: service_healthy
|
|
||||||
executor-service-2:
|
executor-service-2:
|
||||||
<<: *partition-2
|
<<: *partition-2
|
||||||
image: "marginalia/executor-service"
|
image: "marginalia/executor-service"
|
||||||
container_name: "executor-service-2"
|
container_name: "executor-service-2"
|
||||||
depends_on:
|
|
||||||
control-service:
|
|
||||||
condition: service_healthy
|
|
||||||
query-service:
|
query-service:
|
||||||
<<: *service
|
<<: *service
|
||||||
image: "marginalia/query-service"
|
image: "marginalia/query-service"
|
||||||
container_name: "query-service"
|
container_name: "query-service"
|
||||||
depends_on:
|
|
||||||
control-service:
|
|
||||||
condition: service_healthy
|
|
||||||
expose:
|
expose:
|
||||||
- 80
|
- 80
|
||||||
labels:
|
labels:
|
||||||
@ -140,6 +116,12 @@ services:
|
|||||||
- db:/var/lib/mysql
|
- db:/var/lib/mysql
|
||||||
networks:
|
networks:
|
||||||
- wmsa
|
- wmsa
|
||||||
|
zookeeper:
|
||||||
|
image: zookeeper
|
||||||
|
container_name: "zookeeper"
|
||||||
|
restart: always
|
||||||
|
ports:
|
||||||
|
- "127.0.0.1:2181:2181"
|
||||||
traefik:
|
traefik:
|
||||||
image: "traefik:v2.10"
|
image: "traefik:v2.10"
|
||||||
container_name: "traefik"
|
container_name: "traefik"
|
||||||
|
@ -8,21 +8,12 @@ x-svc: &service
|
|||||||
- logs:/var/log/wmsa
|
- logs:/var/log/wmsa
|
||||||
networks:
|
networks:
|
||||||
- wmsa
|
- wmsa
|
||||||
healthcheck:
|
depends_on:
|
||||||
test: curl -f http://localhost:80/internal/ping || exit 1
|
- mariadb
|
||||||
start_period: 1s
|
- zookeeper
|
||||||
interval: 5s
|
|
||||||
timeout: 5s
|
|
||||||
retries: 60
|
|
||||||
x-p1: &partition-1
|
x-p1: &partition-1
|
||||||
env_file:
|
env_file:
|
||||||
- "${INSTALL_DIR}/env/service.env"
|
- "${INSTALL_DIR}/env/service.env"
|
||||||
healthcheck:
|
|
||||||
test: curl -f http://localhost:80/internal/ping || exit 1
|
|
||||||
start_period: 1s
|
|
||||||
interval: 5s
|
|
||||||
timeout: 5s
|
|
||||||
retries: 60
|
|
||||||
volumes:
|
volumes:
|
||||||
- conf:/wmsa/conf:ro
|
- conf:/wmsa/conf:ro
|
||||||
- model:/wmsa/model
|
- model:/wmsa/model
|
||||||
@ -35,17 +26,14 @@ x-p1: &partition-1
|
|||||||
- uploads-1:/uploads
|
- uploads-1:/uploads
|
||||||
networks:
|
networks:
|
||||||
- wmsa
|
- wmsa
|
||||||
|
depends_on:
|
||||||
|
- mariadb
|
||||||
|
- zookeeper
|
||||||
environment:
|
environment:
|
||||||
- "WMSA_SERVICE_NODE=1"
|
- "WMSA_SERVICE_NODE=1"
|
||||||
x-p2: &partition-2
|
x-p2: &partition-2
|
||||||
env_file:
|
env_file:
|
||||||
- "${INSTALL_DIR}/env/service.env"
|
- "${INSTALL_DIR}/env/service.env"
|
||||||
healthcheck:
|
|
||||||
test: curl -f http://localhost:80/internal/ping || exit 1
|
|
||||||
start_period: 1s
|
|
||||||
interval: 5s
|
|
||||||
timeout: 5s
|
|
||||||
retries: 60
|
|
||||||
volumes:
|
volumes:
|
||||||
- conf:/wmsa/conf:ro
|
- conf:/wmsa/conf:ro
|
||||||
- model:/wmsa/model
|
- model:/wmsa/model
|
||||||
@ -58,6 +46,9 @@ x-p2: &partition-2
|
|||||||
- uploads-2:/uploads
|
- uploads-2:/uploads
|
||||||
networks:
|
networks:
|
||||||
- wmsa
|
- wmsa
|
||||||
|
depends_on:
|
||||||
|
- mariadb
|
||||||
|
- zookeeper
|
||||||
environment:
|
environment:
|
||||||
- "WMSA_SERVICE_NODE=2"
|
- "WMSA_SERVICE_NODE=2"
|
||||||
services:
|
services:
|
||||||
@ -65,44 +56,26 @@ services:
|
|||||||
<<: *partition-1
|
<<: *partition-1
|
||||||
image: "marginalia/index-service"
|
image: "marginalia/index-service"
|
||||||
container_name: "index-service-1"
|
container_name: "index-service-1"
|
||||||
depends_on:
|
|
||||||
control-service:
|
|
||||||
condition: service_healthy
|
|
||||||
executor-service-1:
|
executor-service-1:
|
||||||
<<: *partition-1
|
<<: *partition-1
|
||||||
image: "marginalia/executor-service"
|
image: "marginalia/executor-service"
|
||||||
container_name: "executor-service-1"
|
container_name: "executor-service-1"
|
||||||
depends_on:
|
|
||||||
control-service:
|
|
||||||
condition: service_healthy
|
|
||||||
index-service-2:
|
index-service-2:
|
||||||
<<: *partition-2
|
<<: *partition-2
|
||||||
image: "marginalia/index-service"
|
image: "marginalia/index-service"
|
||||||
container_name: "index-service-2"
|
container_name: "index-service-2"
|
||||||
depends_on:
|
|
||||||
control-service:
|
|
||||||
condition: service_healthy
|
|
||||||
executor-service-2:
|
executor-service-2:
|
||||||
<<: *partition-2
|
<<: *partition-2
|
||||||
image: "marginalia/executor-service"
|
image: "marginalia/executor-service"
|
||||||
container_name: "executor-service-2"
|
container_name: "executor-service-2"
|
||||||
depends_on:
|
|
||||||
control-service:
|
|
||||||
condition: service_healthy
|
|
||||||
query-service:
|
query-service:
|
||||||
<<: *service
|
<<: *service
|
||||||
image: "marginalia/query-service"
|
image: "marginalia/query-service"
|
||||||
container_name: "query-service"
|
container_name: "query-service"
|
||||||
depends_on:
|
|
||||||
control-service:
|
|
||||||
condition: service_healthy
|
|
||||||
search-service:
|
search-service:
|
||||||
<<: *service
|
<<: *service
|
||||||
image: "marginalia/search-service"
|
image: "marginalia/search-service"
|
||||||
container_name: "search-service"
|
container_name: "search-service"
|
||||||
depends_on:
|
|
||||||
control-service:
|
|
||||||
condition: service_healthy
|
|
||||||
expose:
|
expose:
|
||||||
- 80
|
- 80
|
||||||
labels:
|
labels:
|
||||||
@ -117,9 +90,6 @@ services:
|
|||||||
<<: *service
|
<<: *service
|
||||||
image: "marginalia/assistant-service"
|
image: "marginalia/assistant-service"
|
||||||
container_name: "assistant-service"
|
container_name: "assistant-service"
|
||||||
depends_on:
|
|
||||||
control-service:
|
|
||||||
condition: service_healthy
|
|
||||||
expose:
|
expose:
|
||||||
- 80
|
- 80
|
||||||
labels:
|
labels:
|
||||||
@ -138,9 +108,6 @@ services:
|
|||||||
<<: *service
|
<<: *service
|
||||||
image: "marginalia/api-service"
|
image: "marginalia/api-service"
|
||||||
container_name: "api-service"
|
container_name: "api-service"
|
||||||
depends_on:
|
|
||||||
control-service:
|
|
||||||
condition: service_healthy
|
|
||||||
expose:
|
expose:
|
||||||
- "80"
|
- "80"
|
||||||
labels:
|
labels:
|
||||||
|
Loading…
Reference in New Issue
Block a user