CatgirlIntelligenceAgency/docker-compose.yml
2023-10-15 18:38:30 +02:00

161 lines
3.3 KiB
YAML

x-svc: &service
env_file:
- "run/env/service.env"
volumes:
- conf:/wmsa/conf:ro
- model:/wmsa/model
- data:/wmsa/data
- logs:/var/log/wmsa
- dist:/dist
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
- logs:/var/log/wmsa
- dist:/dist
- index:/idx
- work:/work
- backup:/backup
- samples:/storage
networks:
- wmsa
depends_on:
- mariadb
environment:
- "WMSA_SERVICE_NODE=1"
services:
index-service-1:
<<: *partition-1
image: "marginalia.nu/index-service"
container_name: "index-service-1"
executor-service-1:
<<: *partition-1
image: "marginalia.nu/executor-service"
container_name: "executor-service-1"
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"
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"
mariadb:
image: "mariadb:lts"
container_name: "mariadb"
env_file: "run/env/mariadb.env"
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/"
networks:
- wmsa
nginx-gw:
image: "nginx"
container_name: "nginx-gw"
ports:
- "127.0.0.1:8080:80"
- "127.0.0.1:8081:81"
- "127.0.0.1:8082:82"
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
index:
driver: local
driver_opts:
type: none
o: bind
device: run/index
work:
driver: local
driver_opts:
type: none
o: bind
device: run/work
backup:
driver: local
driver_opts:
type: none
o: bind
device: run/backup
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
device: run/conf
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