forked from github-starred/komodo
* add periphery.skip label, skip in StopAllContainers * add core config sync directory * deploy stack if changed * fix stack env_file_path when git repo and using run_directory * deploy stack if changed * write sync contents * commit to git based sync, managed git based sync * can sync non UI defined resource syncs * sync UI control * clippy * init new stack compose file in repo * better error message when attached Server / Builder invalid * specify multiple resource file paths (mixed files + folders) * use react charts * tweak stats charts * add Containers page * 1.15.6 * stack deploy check if deployes vs remote has changed * improve ux with loading indicators * sync diff accounts for deploy / after * fix new chart time axes
97 lines
2.7 KiB
YAML
97 lines
2.7 KiB
YAML
################################
|
|
# 🦎 KOMODO COMPOSE - SQLITE 🦎 #
|
|
################################
|
|
|
|
## This compose file will deploy:
|
|
## 1. Sqlite + FerretDB Mongo adapter
|
|
## 2. Komodo Core
|
|
## 3. Komodo Periphery
|
|
|
|
services:
|
|
ferretdb:
|
|
image: ghcr.io/ferretdb/ferretdb
|
|
labels:
|
|
komodo.skip: # Prevent Komodo from stopping with StopAllContainers
|
|
restart: unless-stopped
|
|
logging:
|
|
driver: ${COMPOSE_LOGGING_DRIVER:-local}
|
|
networks:
|
|
- default
|
|
# ports:
|
|
# - 27017:27017
|
|
volumes:
|
|
- sqlite-data:/state
|
|
environment:
|
|
- FERRETDB_HANDLER=sqlite
|
|
|
|
core:
|
|
image: ghcr.io/mbecker20/komodo:${COMPOSE_KOMODO_IMAGE_TAG:-latest}
|
|
labels:
|
|
komodo.skip: # Prevent Komodo from stopping with StopAllContainers
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- ferretdb
|
|
logging:
|
|
driver: ${COMPOSE_LOGGING_DRIVER:-local}
|
|
networks:
|
|
- default
|
|
ports:
|
|
- 9120:9120
|
|
env_file: ./compose.env
|
|
environment:
|
|
KOMODO_DATABASE_ADDRESS: ferretdb
|
|
volumes:
|
|
## Core cache for repos for latest commit hash / contents
|
|
- repo-cache:/repo-cache
|
|
## Store sync files on server
|
|
# - /path/to/syncs:/syncs
|
|
## Optionally mount a custom core.config.toml
|
|
# - /path/to/core.config.toml:/config/config.toml
|
|
## Allows for systemd Periphery connection at
|
|
## "http://host.docker.internal:8120"
|
|
# extra_hosts:
|
|
# - host.docker.internal:host-gateway
|
|
|
|
## Deploy Periphery container using this block,
|
|
## or deploy the Periphery binary with systemd using
|
|
## https://github.com/mbecker20/komodo/tree/main/scripts
|
|
periphery:
|
|
image: ghcr.io/mbecker20/periphery:${COMPOSE_KOMODO_IMAGE_TAG:-latest}
|
|
labels:
|
|
komodo.skip: # Prevent Komodo from stopping with StopAllContainers
|
|
restart: unless-stopped
|
|
logging:
|
|
driver: ${COMPOSE_LOGGING_DRIVER:-local}
|
|
networks:
|
|
- default
|
|
env_file: ./compose.env
|
|
volumes:
|
|
## Mount external docker socket
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
## Allow Periphery to see processes outside of container
|
|
- /proc:/proc
|
|
## use self signed certs in docker volume,
|
|
## or mount your own signed certs.
|
|
- ssl-certs:/etc/komodo/ssl
|
|
## manage repos in a docker volume,
|
|
## or change it to an accessible host directory.
|
|
- repos:/etc/komodo/repos
|
|
## manage stack files in a docker volume,
|
|
## or change it to an accessible host directory.
|
|
- stacks:/etc/komodo/stacks
|
|
## Optionally mount a path to store compose files
|
|
# - /path/to/compose:/host/compose
|
|
|
|
volumes:
|
|
# Sqlite
|
|
sqlite-data:
|
|
# Core
|
|
syncs:
|
|
repo-cache:
|
|
# Periphery
|
|
ssl-certs:
|
|
repos:
|
|
stacks:
|
|
|
|
networks:
|
|
default: {} |