Some checks failed
test cassandra-backup / Test latest Cassandra backup (push) Has been cancelled
130 lines
3.4 KiB
YAML
130 lines
3.4 KiB
YAML
x-logging: &default-logging
|
|
driver: json-file
|
|
options:
|
|
max-size: '10m'
|
|
max-file: '5'
|
|
|
|
services:
|
|
valkey:
|
|
image: valkey/valkey:8.0.6-alpine
|
|
container_name: valkey
|
|
restart: unless-stopped
|
|
command: ['valkey-server', '--appendonly', 'yes', '--save', '60', '1', '--loglevel', 'warning']
|
|
volumes:
|
|
- valkey_data:/data
|
|
healthcheck:
|
|
test: ['CMD', 'valkey-cli', 'ping']
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
logging: *default-logging
|
|
|
|
fluxer_server:
|
|
container_name: fluxer_server
|
|
restart: unless-stopped
|
|
init: true
|
|
environment:
|
|
FLUXER_CONFIG: /usr/src/app/config/config.json
|
|
NODE_ENV: production
|
|
ports:
|
|
- '${FLUXER_HTTP_PORT:-8080}:8080'
|
|
depends_on:
|
|
nats:
|
|
condition: service_healthy
|
|
valkey:
|
|
condition: service_healthy
|
|
volumes:
|
|
- ./config:/usr/src/app/config:ro
|
|
- fluxer_data:/usr/src/app/data
|
|
build:
|
|
context: .
|
|
dockerfile: fluxer_server/Dockerfile
|
|
args:
|
|
FLUXER_BUILD_CONFIG: |
|
|
{ "domain": { "base_domain": "${FLUXER_BASE_DOMAIN}", "static_cdn_domain": "fluxerstatic.com", "public_scheme": "https", "public_port": 443 } }
|
|
healthcheck:
|
|
test: ['CMD-SHELL', 'curl -fsS http://127.0.0.1:8080/_health || exit 1']
|
|
interval: 15s
|
|
timeout: 5s
|
|
retries: 5
|
|
start_period: 15s
|
|
logging: *default-logging
|
|
|
|
nats:
|
|
image: nats:2.11-alpine
|
|
container_name: fluxer-nats
|
|
restart: unless-stopped
|
|
command: ["-js"]
|
|
ports:
|
|
- "4222:4222"
|
|
volumes:
|
|
- nats-data:/data/jetstream
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "nc -z localhost 4222 || exit 1"]
|
|
interval: 5s
|
|
retries: 5
|
|
|
|
meilisearch:
|
|
image: getmeili/meilisearch:v1.14
|
|
container_name: meilisearch
|
|
profiles: ['meilisearch']
|
|
restart: unless-stopped
|
|
environment:
|
|
MEILI_ENV: production
|
|
MEILI_MASTER_KEY: ${MEILI_MASTER_KEY:?Set MEILI_MASTER_KEY in .env or environment}
|
|
MEILI_DB_PATH: /meili_data
|
|
MEILI_HTTP_ADDR: 0.0.0.0:7700
|
|
ports:
|
|
- '${MEILI_PORT:-7700}:7700'
|
|
volumes:
|
|
- meilisearch_data:/meili_data
|
|
healthcheck:
|
|
test: ['CMD-SHELL', 'curl -fsS http://127.0.0.1:7700/health || exit 1']
|
|
interval: 15s
|
|
timeout: 5s
|
|
retries: 5
|
|
logging: *default-logging
|
|
|
|
elasticsearch:
|
|
image: elasticsearch:8.19.11
|
|
container_name: elasticsearch
|
|
profiles: ['elasticsearch']
|
|
restart: unless-stopped
|
|
environment:
|
|
discovery.type: single-node
|
|
xpack.security.enabled: 'false'
|
|
xpack.security.http.ssl.enabled: 'false'
|
|
ES_JAVA_OPTS: '-Xms512m -Xmx512m'
|
|
ports:
|
|
- '${ELASTICSEARCH_PORT:-9200}:9200'
|
|
volumes:
|
|
- elasticsearch_data:/usr/share/elasticsearch/data
|
|
healthcheck:
|
|
test: ['CMD-SHELL', 'curl -fsS http://127.0.0.1:9200/_cluster/health || exit 1']
|
|
interval: 15s
|
|
timeout: 5s
|
|
retries: 5
|
|
logging: *default-logging
|
|
|
|
livekit:
|
|
image: livekit/livekit-server:v1.9.11
|
|
container_name: livekit
|
|
profiles: ['voice']
|
|
restart: unless-stopped
|
|
network_mode: host
|
|
command: ['--config', '/etc/livekit/livekit.yaml']
|
|
volumes:
|
|
- ./config/livekit.yaml:/etc/livekit/livekit.yaml:ro
|
|
healthcheck:
|
|
test: ['CMD-SHELL', 'wget -qO- http://127.0.0.1:7880 || exit 1']
|
|
interval: 15s
|
|
timeout: 5s
|
|
retries: 5
|
|
logging: *default-logging
|
|
|
|
volumes:
|
|
valkey_data:
|
|
fluxer_data:
|
|
meilisearch_data:
|
|
elasticsearch_data:
|
|
nats-data: |