CatgirlIntelligenceAgency/docker-compose.yml

180 lines
3.8 KiB
YAML
Raw Normal View History

2023-03-04 13:19:01 +01:00
x-svc: &service
env_file:
2023-03-04 14:24:38 +01:00
- "run/env/service.env"
2023-03-04 13:19:01 +01:00
volumes:
- vol:/vol
- backup:/backup
2023-03-04 13:19:01 +01:00
- conf:/wmsa/conf:ro
- model:/wmsa/model
2023-03-25 10:20:44 +01:00
- data:/wmsa/data
- dist:/dist
- samples:/samples
2023-03-04 13:19:01 +01:00
- 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"
2023-03-04 13:19:01 +01:00
- "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
2023-03-04 13:19:01 +01:00
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
2023-03-04 13:19:01 +01:00
mariadb:
image: "mariadb:lts"
2023-03-04 13:19:01 +01:00
container_name: "mariadb"
2023-03-04 14:24:38 +01:00
env_file: "run/env/mariadb.env"
2023-03-04 13:19:01 +01: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 13:19:01 +01:00
networks:
- wmsa
nginx-gw:
image: "nginx"
container_name: "nginx-gw"
ports:
- "127.0.0.1:8080:80"
2023-07-10 18:58:33 +02:00
- "127.0.0.1:8081:81"
- "127.0.0.1:8082:82"
2023-03-04 13:19:01 +01: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
vol:
driver: local
driver_opts:
type: none
o: bind
device: run/vol
backup:
driver: local
driver_opts:
type: none
o: bind
device: run/backup
2023-03-04 13:19:01 +01: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 10:43:51 +01:00
device: run/conf
2023-03-25 10:20:44 +01: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