18
_squirrel-servers-manager/compose.env
Normal file
18
_squirrel-servers-manager/compose.env
Normal file
@@ -0,0 +1,18 @@
|
||||
# SECRETS
|
||||
SECRET=AN9r5OOcid00yyW1AcYL0GIr6YS9o01p
|
||||
SALT=1AvwZUDNL0fAFkEg
|
||||
VAULT_PWD=KVfvVh052dt7uzxQwyOL6cFHelS8uyO6
|
||||
# MONGO
|
||||
DB_HOST=mongo
|
||||
DB_NAME=ssm
|
||||
DB_PORT=27017
|
||||
# REDIS
|
||||
REDIS_HOST=redis
|
||||
REDIS_PORT=6379
|
||||
#SSM CONFIG
|
||||
#SSM_INSTALL_PATH=/opt/squirrelserversmanager
|
||||
#SSM_DATA_PATH=/data
|
||||
TELEMETRY_ENABLED=true
|
||||
# PROMETHEUS
|
||||
PROMETHEUS_USERNAME=2wjvpf0zFJpvdCRq
|
||||
PROMETHEUS_PASSWORD=kODab3yU9njlHM6qwkyeaPs4JQYk9Mkc
|
||||
92
_squirrel-servers-manager/docker-compose.yaml
Normal file
92
_squirrel-servers-manager/docker-compose.yaml
Normal file
@@ -0,0 +1,92 @@
|
||||
---
|
||||
name: ssm
|
||||
|
||||
volumes:
|
||||
prometheus:
|
||||
mongo:
|
||||
valkey:
|
||||
server:
|
||||
|
||||
services:
|
||||
proxy:
|
||||
restart: unless-stopped
|
||||
image: "ghcr.io/squirrelcorporation/squirrelserversmanager-proxy:latest"
|
||||
container_name: ssm-proxy
|
||||
ports:
|
||||
- "32520:8000"
|
||||
depends_on:
|
||||
- client
|
||||
- mongo
|
||||
- server
|
||||
- redis
|
||||
- prometheus
|
||||
labels:
|
||||
wud.display.name: "SSM - Proxy"
|
||||
wud.watch.digest: false
|
||||
|
||||
prometheus:
|
||||
image: "ghcr.io/squirrelcorporation/squirrelserversmanager-prometheus:latest"
|
||||
container_name: ssm-prometheus
|
||||
restart: unless-stopped
|
||||
env_file: .env
|
||||
volumes:
|
||||
- prometheus:/prometheus
|
||||
labels:
|
||||
wud.display.name: "SSM - Prometheus"
|
||||
|
||||
mongo:
|
||||
container_name: ssm-mongo
|
||||
image: mongo
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- mongo:/data/db
|
||||
command: --quiet
|
||||
labels:
|
||||
wud.display.name: "SSM - MongoDB"
|
||||
|
||||
redis:
|
||||
container_name: ssm-cache
|
||||
image: valkey/valkey
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- valkey:/data
|
||||
command: --save 60 1
|
||||
labels:
|
||||
wud.display.name: "SSM - Redis"
|
||||
|
||||
server:
|
||||
image: "ghcr.io/squirrelcorporation/squirrelserversmanager-server:latest"
|
||||
container_name: ssm-server
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: curl --fail http://localhost:3000/ping || exit 1
|
||||
interval: 40s
|
||||
timeout: 30s
|
||||
retries: 3
|
||||
start_period: 60s
|
||||
external_links:
|
||||
- mongo
|
||||
- redis
|
||||
- prometheus
|
||||
depends_on:
|
||||
- mongo
|
||||
- redis
|
||||
- prometheus
|
||||
env_file: .env
|
||||
environment:
|
||||
NODE_ENV: production
|
||||
volumes:
|
||||
- server:/data
|
||||
labels:
|
||||
wud.display.name: "SSM - Server"
|
||||
wud.watch.digest: false
|
||||
|
||||
client:
|
||||
image: "ghcr.io/squirrelcorporation/squirrelserversmanager-client:latest"
|
||||
container_name: ssm-client
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
- server
|
||||
labels:
|
||||
wud.display.name: "SSM - Client"
|
||||
wud.watch.digest: false
|
||||
Reference in New Issue
Block a user