v0.2.0
This commit is contained in:
1 parent
fc81ecafd6
commit
dc57aa7089
89 files changed
+5290
-1551
No files matched your search
@@ -0,0 +1,62 @@
|
||||
services:
|
||||
mysql:
|
||||
image: mysql:8.4
|
||||
environment:
|
||||
MYSQL_DATABASE: rustbox
|
||||
MYSQL_USER: rustbox
|
||||
MYSQL_PASSWORD: ${MYSQL_PASSWORD:-rustbox-dev-password}
|
||||
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:-rustbox-root-password}
|
||||
healthcheck:
|
||||
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-uroot", "-p${MYSQL_ROOT_PASSWORD:-rustbox-root-password}"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 30
|
||||
volumes:
|
||||
- mysql-data:/var/lib/mysql
|
||||
|
||||
opensearch:
|
||||
image: opensearchproject/opensearch:3.9.0
|
||||
environment:
|
||||
discovery.type: single-node
|
||||
DISABLE_INSTALL_DEMO_CONFIG: "true"
|
||||
DISABLE_SECURITY_PLUGIN: "true"
|
||||
OPENSEARCH_JAVA_OPTS: -Xms512m -Xmx512m
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -fsS http://localhost:9200/_cluster/health >/dev/null || exit 1"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 30
|
||||
volumes:
|
||||
- opensearch-data:/usr/share/opensearch/data
|
||||
|
||||
rustbox:
|
||||
build:
|
||||
context: ..
|
||||
dockerfile: docker/Dockerfile
|
||||
depends_on:
|
||||
mysql:
|
||||
condition: service_healthy
|
||||
opensearch:
|
||||
condition: service_healthy
|
||||
ports:
|
||||
- "3001:3001"
|
||||
environment:
|
||||
RUSTBOX_CONFIG: /etc/rustbox/rustbox.toml
|
||||
DATABASE_URL: mysql://rustbox:${MYSQL_PASSWORD:-rustbox-dev-password}@mysql:3306/rustbox
|
||||
SESSION_ENCRYPTION_KEY: ${SESSION_ENCRYPTION_KEY:-MDEyMzQ1Njc4OWFiY2RlZjAxMjM0NTY3ODlhYmNkZWY=}
|
||||
IMAP_HOST: ${IMAP_HOST:-mail.example.com}
|
||||
SMTP_HOST: ${SMTP_HOST:-mail.example.com}
|
||||
volumes:
|
||||
- ./configs/mysql-nfs-opensearch.toml:/etc/rustbox/rustbox.toml:ro
|
||||
- rustbox-nfs:/mnt/rustbox-shared
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
mysql-data:
|
||||
opensearch-data:
|
||||
rustbox-nfs:
|
||||
driver: local
|
||||
driver_opts:
|
||||
type: nfs
|
||||
o: addr=${NFS_SERVER:?set NFS_SERVER},rw,nfsvers=4
|
||||
device: :${NFS_EXPORT:-/rustbox}
|
||||
Reference in new issue
Block a user