68 lines
No EOL
1.8 KiB
Text
Executable file
68 lines
No EOL
1.8 KiB
Text
Executable file
services:
|
|
proxy:
|
|
restart: unless-stopped
|
|
image: "ghcr.io/squirrelcorporation/squirrelserversmanager-proxy:latest"
|
|
container_name: proxy-ssm-${IP}-${PORT}
|
|
ports:
|
|
- "${IP}:${PORT}:8000"
|
|
depends_on:
|
|
- client
|
|
- mongo
|
|
- server
|
|
- redis
|
|
labels:
|
|
wud.display.name: "SSM - Proxy"
|
|
wud.watch.digest: false
|
|
mongo:
|
|
container_name: mongo-ssm-${IP}-${PORT}
|
|
image: mongo
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ${DATA_DIR}/db:/data/db
|
|
command: --quiet
|
|
labels:
|
|
wud.display.name: "SSM - MongoDB"
|
|
redis:
|
|
container_name: cache-ssm-${IP}-${PORT}
|
|
image: redis
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ${DATA_DIR}/cache:/data
|
|
command: --save 60 1
|
|
labels:
|
|
wud.display.name: "SSM - Redis"
|
|
server:
|
|
image: "ghcr.io/squirrelcorporation/squirrelserversmanager-server:latest"
|
|
container_name: server-ssm-${IP}-${PORT}
|
|
restart: unless-stopped
|
|
external_links:
|
|
- mongo
|
|
- redis
|
|
depends_on:
|
|
- mongo
|
|
- redis
|
|
environment:
|
|
NODE_ENV: production
|
|
SECRET: ${ENV_KEY}
|
|
SALT: ${ENV_SALTKEY}
|
|
VAULT_PWD: ${ENV_PWD}
|
|
DB_HOST: mongo
|
|
DB_NAME: ssm
|
|
DB_PORT: 27017
|
|
REDIS_HOST: redis
|
|
REDIS_PORT: 6379
|
|
volumes:
|
|
- ${DATA_DIR}/playbooks:/playbooks
|
|
- ${DATA_DIR}/config:/ansible-config
|
|
labels:
|
|
wud.display.name: "SSM - Server"
|
|
wud.watch.digest: false
|
|
client:
|
|
image: "ghcr.io/squirrelcorporation/squirrelserversmanager-client:latest"
|
|
container_name: client-ssm-${IP}-${PORT}
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- server
|
|
labels:
|
|
wud.display.name: "SSM - Client"
|
|
wud.watch.digest: false |