MarginaliaSearch/docker-compose.yml

161 lines
3.3 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
- dist:/dist
2023-10-15 16:38:30 +00:00
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-15 16:38:30 +00:00
- dist:/dist
- index:/idx
- work:/work
- backup:/backup
- samples:/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-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-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-15 16:38:30 +00:00
index:
driver: local
driver_opts:
type: none
o: bind
device: run/index
work:
2023-03-04 12:19:01 +00:00
driver: local
driver_opts:
type: none
o: bind
2023-10-15 16:38:30 +00:00
device: run/work
backup:
driver: local
driver_opts:
type: none
o: bind
device: run/backup
2023-03-04 12:19:01 +00:00
logs:
driver: local
driver_opts:
type: none
o: bind
device: run/logs
model:
driver: local
driver_opts:
type: none
o: bind
device: run/model
conf:
driver: local
driver_opts:
type: none
o: bind
2023-03-18 09:43:51 +00:00
device: run/conf
2023-03-25 09:20:44 +00:00
data:
driver: local
driver_opts:
type: none
o: bind
device: run/data
dist:
driver: local
driver_opts:
type: none
o: bind
device: run/dist
samples:
driver: local
driver_opts:
type: none
o: bind
device: run/samples