2024-01-11 12:40:03 +01:00
|
|
|
x-svc: &service
|
|
|
|
env_file:
|
|
|
|
- "${INSTALL_DIR}/env/service.env"
|
|
|
|
volumes:
|
|
|
|
- conf:/wmsa/conf:ro
|
|
|
|
- model:/wmsa/model
|
|
|
|
- data:/wmsa/data
|
|
|
|
- logs:/var/log/wmsa
|
|
|
|
networks:
|
|
|
|
- wmsa
|
2024-02-28 11:48:16 +01:00
|
|
|
depends_on:
|
|
|
|
- mariadb
|
|
|
|
- zookeeper
|
2024-01-11 12:40:03 +01:00
|
|
|
x-p1: &partition-1
|
|
|
|
env_file:
|
|
|
|
- "${INSTALL_DIR}/env/service.env"
|
|
|
|
volumes:
|
|
|
|
- conf:/wmsa/conf:ro
|
|
|
|
- model:/wmsa/model
|
|
|
|
- data:/wmsa/data
|
|
|
|
- logs:/var/log/wmsa
|
|
|
|
- index-1:/idx
|
|
|
|
- work-1:/work
|
|
|
|
- backup-1:/backup
|
2024-01-12 12:33:05 +01:00
|
|
|
- storage-1:/storage
|
|
|
|
- uploads-1:/uploads
|
2024-01-11 12:40:03 +01:00
|
|
|
networks:
|
|
|
|
- wmsa
|
|
|
|
environment:
|
|
|
|
- "WMSA_SERVICE_NODE=1"
|
2024-02-28 11:48:16 +01:00
|
|
|
depends_on:
|
|
|
|
- mariadb
|
|
|
|
- zookeeper
|
2024-01-11 12:40:03 +01:00
|
|
|
services:
|
|
|
|
index-service-1:
|
|
|
|
<<: *partition-1
|
|
|
|
image: "marginalia/index-service"
|
|
|
|
container_name: "index-service-1"
|
|
|
|
executor-service-1:
|
|
|
|
<<: *partition-1
|
|
|
|
image: "marginalia/executor-service"
|
|
|
|
container_name: "executor-service-1"
|
2024-01-13 18:27:42 +01:00
|
|
|
query-service:
|
2024-01-11 12:40:03 +01:00
|
|
|
<<: *service
|
2024-01-13 18:27:42 +01:00
|
|
|
image: "marginalia/query-service"
|
|
|
|
container_name: "query-service"
|
2024-01-11 12:40:03 +01:00
|
|
|
expose:
|
|
|
|
- 80
|
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
|
|
|
- "traefik.http.routers.search-service.rule=PathPrefix(`/`)"
|
|
|
|
- "traefik.http.routers.search-service.entrypoints=search"
|
|
|
|
- "traefik.http.routers.search-service.middlewares=add-xpublic"
|
|
|
|
- "traefik.http.routers.search-service.middlewares=add-public"
|
|
|
|
- "traefik.http.middlewares.add-xpublic.headers.customrequestheaders.X-Public=1"
|
|
|
|
- "traefik.http.middlewares.add-public.addprefix.prefix=/public"
|
|
|
|
control-service:
|
|
|
|
<<: *service
|
|
|
|
image: "marginalia/control-service"
|
|
|
|
container_name: "control-service"
|
|
|
|
depends_on:
|
|
|
|
mariadb:
|
|
|
|
condition: service_healthy
|
|
|
|
expose:
|
|
|
|
- 80
|
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
|
|
|
- "traefik.http.routers.control-service.rule=PathPrefix(`/`)"
|
|
|
|
- "traefik.http.routers.control-service.entrypoints=control"
|
|
|
|
- "traefik.http.routers.control-service.middlewares=add-xpublic"
|
|
|
|
- "traefik.http.routers.control-service.middlewares=add-public"
|
|
|
|
- "traefik.http.middlewares.add-xpublic.headers.customrequestheaders.X-Public=1"
|
|
|
|
- "traefik.http.middlewares.add-public.addprefix.prefix=/public"
|
|
|
|
mariadb:
|
|
|
|
image: "mariadb:lts"
|
|
|
|
container_name: "mariadb"
|
|
|
|
env_file: "${INSTALL_DIR}/env/mariadb.env"
|
|
|
|
command: ['mysqld', '--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci']
|
|
|
|
ports:
|
|
|
|
- "127.0.0.1:3306:3306/tcp"
|
|
|
|
healthcheck:
|
|
|
|
test: mysqladmin ping -h 127.0.0.1 -u ${uval} --password=${pval}
|
|
|
|
start_period: 5s
|
|
|
|
interval: 5s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 60
|
|
|
|
volumes:
|
|
|
|
- db:/var/lib/mysql
|
|
|
|
networks:
|
|
|
|
- wmsa
|
2024-02-20 11:41:14 +01:00
|
|
|
zookeeper:
|
|
|
|
image: zookeeper
|
|
|
|
container_name: "zookeeper"
|
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- "127.0.0.1:2181:2181"
|
2024-01-11 12:40:03 +01:00
|
|
|
traefik:
|
|
|
|
image: "traefik:v2.10"
|
|
|
|
container_name: "traefik"
|
|
|
|
command:
|
|
|
|
#- "--log.level=DEBUG"
|
|
|
|
- "--api.insecure=true"
|
|
|
|
- "--providers.docker=true"
|
|
|
|
- "--providers.docker.exposedbydefault=false"
|
|
|
|
- "--entrypoints.search.address=:80"
|
|
|
|
- "--entrypoints.control.address=:81"
|
|
|
|
ports:
|
|
|
|
- "127.0.0.1:8080:80"
|
|
|
|
- "127.0.0.1:8081:81"
|
|
|
|
- "127.0.0.1:8090:8080"
|
|
|
|
volumes:
|
|
|
|
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
|
|
|
networks:
|
|
|
|
- wmsa
|
|
|
|
networks:
|
|
|
|
wmsa:
|
|
|
|
volumes:
|
|
|
|
db:
|
|
|
|
driver: local
|
|
|
|
driver_opts:
|
|
|
|
type: none
|
|
|
|
o: bind
|
|
|
|
device: ${INSTALL_DIR}/db
|
|
|
|
logs:
|
|
|
|
driver: local
|
|
|
|
driver_opts:
|
|
|
|
type: none
|
|
|
|
o: bind
|
|
|
|
device: ${INSTALL_DIR}/logs
|
|
|
|
model:
|
|
|
|
driver: local
|
|
|
|
driver_opts:
|
|
|
|
type: none
|
|
|
|
o: bind
|
|
|
|
device: ${INSTALL_DIR}/model
|
|
|
|
conf:
|
|
|
|
driver: local
|
|
|
|
driver_opts:
|
|
|
|
type: none
|
|
|
|
o: bind
|
|
|
|
device: ${INSTALL_DIR}/conf
|
|
|
|
data:
|
|
|
|
driver: local
|
|
|
|
driver_opts:
|
|
|
|
type: none
|
|
|
|
o: bind
|
|
|
|
device: ${INSTALL_DIR}/data
|
2024-01-12 12:33:05 +01:00
|
|
|
storage-1:
|
2024-01-11 12:40:03 +01:00
|
|
|
driver: local
|
|
|
|
driver_opts:
|
|
|
|
type: none
|
|
|
|
o: bind
|
|
|
|
device: ${INSTALL_DIR}/index-1/storage
|
2024-01-12 12:33:05 +01:00
|
|
|
uploads-1:
|
|
|
|
driver: local
|
|
|
|
driver_opts:
|
|
|
|
type: none
|
|
|
|
o: bind
|
|
|
|
device: ${INSTALL_DIR}/index-1/uploads
|
2024-01-11 12:40:03 +01:00
|
|
|
index-1:
|
|
|
|
driver: local
|
|
|
|
driver_opts:
|
|
|
|
type: none
|
|
|
|
o: bind
|
|
|
|
device: ${INSTALL_DIR}/index-1/index
|
|
|
|
work-1:
|
|
|
|
driver: local
|
|
|
|
driver_opts:
|
|
|
|
type: none
|
|
|
|
o: bind
|
|
|
|
device: ${INSTALL_DIR}/index-1/work
|
|
|
|
backup-1:
|
|
|
|
driver: local
|
|
|
|
driver_opts:
|
|
|
|
type: none
|
|
|
|
o: bind
|
2024-01-25 16:40:28 +01:00
|
|
|
device: ${INSTALL_DIR}/index-1/backup
|