MarginaliaSearch/docker-compose.yml

202 lines
4.2 KiB
YAML
Raw Normal View History

2023-03-04 12:19:01 +00:00
x-svc: &service
env_file:
2023-03-04 13:24:38 +00:00
- "run/env/service.env"
2023-03-04 12:19:01 +00:00
volumes:
- conf:/wmsa/conf:ro
- model:/wmsa/model
2023-03-25 09:20:44 +00:00
- data:/wmsa/data
2023-10-15 16:38:30 +00:00
- logs:/var/log/wmsa
networks:
- wmsa
depends_on:
- mariadb
x-p1: &partition-1
env_file:
- "run/env/service.env"
volumes:
- conf:/wmsa/conf:ro
- model:/wmsa/model
- data:/wmsa/data
2023-03-04 12:19:01 +00:00
- logs:/var/log/wmsa
2023-10-16 15:37:26 +00:00
- index-1:/idx
- work-1:/work
- backup-1:/backup
- samples-1:/storage
2023-03-04 12:19:01 +00:00
networks:
- wmsa
depends_on:
- mariadb
2023-10-15 16:38:30 +00:00
environment:
- "WMSA_SERVICE_NODE=1"
2023-10-16 15:37:26 +00:00
x-p2: &partition-2
env_file:
- "run/env/service.env"
volumes:
- conf:/wmsa/conf:ro
- model:/wmsa/model
- data:/wmsa/data
- logs:/var/log/wmsa
- index-2:/idx
- work-2:/work
- backup-2:/backup
- samples-2:/storage
networks:
- wmsa
depends_on:
- mariadb
environment:
- "WMSA_SERVICE_NODE=2"
2023-03-04 12:19:01 +00:00
services:
2023-10-15 16:38:30 +00:00
index-service-1:
<<: *partition-1
2023-03-04 12:19:01 +00:00
image: "marginalia.nu/index-service"
2023-10-15 16:38:30 +00:00
container_name: "index-service-1"
executor-service-1:
<<: *partition-1
image: "marginalia.nu/executor-service"
container_name: "executor-service-1"
2023-10-16 15:37:26 +00:00
index-service-2:
<<: *partition-2
image: "marginalia.nu/index-service"
container_name: "index-service-2"
executor-service-2:
<<: *partition-2
image: "marginalia.nu/executor-service"
container_name: "executor-service-2"
2023-03-04 12:19:01 +00:00
search-service:
<<: *service
image: "marginalia.nu/search-service"
container_name: "search-service"
assistant-service:
<<: *service
image: "marginalia.nu/assistant-service"
container_name: "assistant-service"
api-service:
<<: *service
image: "marginalia.nu/api-service"
container_name: "api-service"
query-service:
<<: *service
image: "marginalia.nu/query-service"
container_name: "query-service"
2023-03-04 12:19:01 +00:00
dating-service:
<<: *service
image: "marginalia.nu/dating-service"
container_name: "dating-service"
explorer-service:
<<: *service
image: "marginalia.nu/explorer-service"
container_name: "explorer-service"
control-service:
<<: *service
image: "marginalia.nu/control-service"
container_name: "control-service"
2023-10-15 16:38:30 +00:00
2023-03-04 12:19:01 +00:00
mariadb:
image: "mariadb:lts"
2023-03-04 12:19:01 +00:00
container_name: "mariadb"
2023-03-04 13:24:38 +00:00
env_file: "run/env/mariadb.env"
2023-03-04 12:19:01 +00:00
command: ['mysqld', '--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci']
ports:
- "127.0.0.1:3306:3306/tcp"
volumes:
- db:/var/lib/mysql
- "./code/common/db/src/main/resources/sql/current/:/docker-entrypoint-initdb.d/"
2023-03-04 12:19:01 +00:00
networks:
- wmsa
nginx-gw:
image: "nginx"
container_name: "nginx-gw"
ports:
- "127.0.0.1:8080:80"
2023-07-10 16:58:33 +00:00
- "127.0.0.1:8081:81"
- "127.0.0.1:8082:82"
2023-03-04 12:19:01 +00:00
volumes:
- "./run/nginx-site.conf:/etc/nginx/conf.d/default.conf"
networks:
- wmsa
depends_on:
- search-service
networks:
wmsa:
volumes:
db:
driver: local
driver_opts:
type: none
o: bind
device: run/db
2023-10-16 15:37:26 +00:00
logs:
2023-10-15 16:38:30 +00:00
driver: local
driver_opts:
type: none
o: bind
2023-10-16 15:37:26 +00:00
device: run/logs
model:
2023-03-04 12:19:01 +00:00
driver: local
driver_opts:
type: none
o: bind
2023-10-16 15:37:26 +00:00
device: run/model
conf:
driver: local
driver_opts:
type: none
o: bind
2023-10-16 15:37:26 +00:00
device: run/conf
data:
2023-03-04 12:19:01 +00:00
driver: local
driver_opts:
type: none
o: bind
2023-10-16 15:37:26 +00:00
device: run/data
samples-1:
2023-03-04 12:19:01 +00:00
driver: local
driver_opts:
type: none
o: bind
2023-10-16 15:37:26 +00:00
device: run/node-1/samples
index-1:
2023-03-25 09:20:44 +00:00
driver: local
driver_opts:
type: none
o: bind
2023-10-16 15:37:26 +00:00
device: run/node-1/index
work-1:
driver: local
driver_opts:
type: none
o: bind
2023-10-16 15:37:26 +00:00
device: run/node-1/work
backup-1:
driver: local
driver_opts:
type: none
o: bind
device: run/node-1/backup
samples-2:
driver: local
driver_opts:
type: none
o: bind
device: run/node-2/samples
index-2:
driver: local
driver_opts:
type: none
o: bind
device: run/node-2/index
work-2:
driver: local
driver_opts:
type: none
o: bind
device: run/node-2/work
backup-2:
driver: local
driver_opts:
type: none
o: bind
2023-10-16 15:37:26 +00:00
device: run/node-2/backup