180 lines
3.8 KiB
YAML
180 lines
3.8 KiB
YAML
x-svc: &service
|
|
env_file:
|
|
- "run/env/service.env"
|
|
volumes:
|
|
- vol:/vol
|
|
- backup:/backup
|
|
- conf:/wmsa/conf:ro
|
|
- model:/wmsa/model
|
|
- data:/wmsa/data
|
|
- dist:/dist
|
|
- samples:/samples
|
|
- logs:/var/log/wmsa
|
|
networks:
|
|
- wmsa
|
|
depends_on:
|
|
- mariadb
|
|
|
|
services:
|
|
index-service:
|
|
<<: *service
|
|
image: "marginalia.nu/index-service"
|
|
container_name: "index-service"
|
|
ports:
|
|
- "127.0.0.1:5021:5021/tcp"
|
|
- "127.0.0.1:4021:5000"
|
|
- "127.0.0.1:7021:4000"
|
|
search-service:
|
|
<<: *service
|
|
image: "marginalia.nu/search-service"
|
|
container_name: "search-service"
|
|
ports:
|
|
- "127.0.0.1:5023:5023"
|
|
- "127.0.0.1:4023:5000"
|
|
- "127.0.0.1:7023:4000"
|
|
depends_on:
|
|
- index-service
|
|
assistant-service:
|
|
<<: *service
|
|
image: "marginalia.nu/assistant-service"
|
|
container_name: "assistant-service"
|
|
ports:
|
|
- "127.0.0.1:5025:5025"
|
|
- "127.0.0.1:4025:5000"
|
|
- "127.0.0.1:7025:4000"
|
|
depends_on:
|
|
- mariadb
|
|
api-service:
|
|
<<: *service
|
|
image: "marginalia.nu/api-service"
|
|
container_name: "api-service"
|
|
ports:
|
|
- "127.0.0.1:5004:5004"
|
|
- "127.0.0.1:4004:5000"
|
|
- "127.0.0.1:7004:4000"
|
|
depends_on:
|
|
- mariadb
|
|
query-service:
|
|
<<: *service
|
|
image: "marginalia.nu/query-service"
|
|
container_name: "query-service"
|
|
ports:
|
|
- "127.0.0.1:5022:5022"
|
|
- "127.0.0.1:4022:5000"
|
|
- "127.0.0.1:7022:4000"
|
|
depends_on:
|
|
- mariadb
|
|
dating-service:
|
|
<<: *service
|
|
image: "marginalia.nu/dating-service"
|
|
container_name: "dating-service"
|
|
ports:
|
|
- "127.0.0.1:5070:5070"
|
|
- "127.0.0.1:4070:5000"
|
|
- "127.0.0.1:7070:4000"
|
|
depends_on:
|
|
- mariadb
|
|
explorer-service:
|
|
<<: *service
|
|
image: "marginalia.nu/explorer-service"
|
|
container_name: "explorer-service"
|
|
ports:
|
|
- "127.0.0.1:5071:5071"
|
|
- "127.0.0.1:4071:5000"
|
|
- "127.0.0.1:7071:4000"
|
|
depends_on:
|
|
- mariadb
|
|
control-service:
|
|
<<: *service
|
|
image: "marginalia.nu/control-service"
|
|
container_name: "control-service"
|
|
ports:
|
|
- "127.0.0.1:5090:5090"
|
|
- "127.0.0.1:4090:5000"
|
|
- "127.0.0.1:7090:4000"
|
|
- "127.0.0.1:7099:4001"
|
|
depends_on:
|
|
- mariadb
|
|
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
|
|
vol:
|
|
driver: local
|
|
driver_opts:
|
|
type: none
|
|
o: bind
|
|
device: run/vol
|
|
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
|