mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-27 05:23:11 +03:00
e09bd25a87
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
108 lines
2.6 KiB
YAML
108 lines
2.6 KiB
YAML
version: "3"
|
|
services:
|
|
mongodb:
|
|
image: mongo
|
|
command: mongod --port 27018
|
|
environment:
|
|
- PUID=1000
|
|
- PGID=1000
|
|
ports:
|
|
- 27018:27018
|
|
restart: unless-stopped
|
|
minio:
|
|
image: 'minio/minio'
|
|
command: server /data --address ":9000" --console-address ":9001"
|
|
expose:
|
|
- 9000
|
|
ports:
|
|
- 9002:9000
|
|
elastic:
|
|
image: 'elasticsearch:7.14.2'
|
|
expose:
|
|
- 9200
|
|
ports:
|
|
- 9201:9200
|
|
environment:
|
|
- ELASTICSEARCH_PORT_NUMBER=9200
|
|
- BITNAMI_DEBUG=true
|
|
- discovery.type=single-node
|
|
- ES_JAVA_OPTS=-Xms1024m -Xmx1024m
|
|
healthcheck:
|
|
interval: 20s
|
|
retries: 10
|
|
test: curl -s http://localhost:9200/_cluster/health | grep -vq '"status":"red"'
|
|
account:
|
|
image: hardcoreeng/account
|
|
pull_policy: never
|
|
links:
|
|
- mongodb
|
|
- minio
|
|
- transactor
|
|
ports:
|
|
- 3003:3003
|
|
environment:
|
|
- ACCOUNT_PORT=3003
|
|
- SERVER_SECRET=secret
|
|
- MONGO_URL=mongodb://mongodb:27018
|
|
- TRANSACTOR_URL=ws://transactor:3334
|
|
- ENDPOINT_URL=ws://localhost:3334
|
|
- MINIO_ENDPOINT=minio
|
|
- MINIO_ACCESS_KEY=minioadmin
|
|
- MINIO_SECRET_KEY=minioadmin
|
|
- MODEL_ENABLED=*
|
|
front:
|
|
image: hardcoreeng/front
|
|
pull_policy: never
|
|
links:
|
|
- account
|
|
- mongodb
|
|
- minio
|
|
- elastic
|
|
- transactor
|
|
ports:
|
|
- 8083:8083
|
|
environment:
|
|
- SERVER_PORT=8083
|
|
- SERVER_SECRET=secret
|
|
- ACCOUNTS_URL=http://localhost:3003
|
|
- UPLOAD_URL=/files
|
|
- TRANSACTOR_URL=ws://localhost:3334
|
|
- ELASTIC_URL=http://elastic:9200
|
|
- GMAIL_URL=http://localhost:8088
|
|
- CALENDAR_URL=http://localhost:8095
|
|
- TELEGRAM_URL=http://localhost:8086
|
|
- REKONI_URL=http://rekoni:4005
|
|
- MINIO_ENDPOINT=minio
|
|
- MINIO_ACCESS_KEY=minioadmin
|
|
- MINIO_SECRET_KEY=minioadmin
|
|
transactor:
|
|
image: hardcoreeng/transactor
|
|
pull_policy: never
|
|
links:
|
|
- mongodb
|
|
- elastic
|
|
- minio
|
|
- rekoni
|
|
ports:
|
|
- 3334:3334
|
|
environment:
|
|
- SERVER_PORT=3334
|
|
- SERVER_SECRET=secret
|
|
- ELASTIC_URL=http://elastic:9200
|
|
- MONGO_URL=mongodb://mongodb:27018
|
|
- METRICS_CONSOLE=false
|
|
- METRICS_FILE=metrics.txt
|
|
- MINIO_ENDPOINT=minio
|
|
- MINIO_ACCESS_KEY=minioadmin
|
|
- MINIO_SECRET_KEY=minioadmin
|
|
- REKONI_URL=http://rekoni:4005
|
|
- FRONT_URL=http://localhost:8083
|
|
rekoni:
|
|
image: hardcoreeng/rekoni-service
|
|
restart: on-failure
|
|
ports:
|
|
- 4005:4004
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
memory: 1024M |