68 lines
2.2 KiB
YAML
68 lines
2.2 KiB
YAML
################################
|
|
# 🦎 KOMODO COMPOSE - MONGO 🦎 #
|
|
################################
|
|
|
|
## This compose file will deploy:
|
|
## 1. MongoDB
|
|
## 2. Komodo Core
|
|
## 3. Komodo Periphery
|
|
|
|
services:
|
|
core:
|
|
image: ghcr.io/mbecker20/komodo:${COMPOSE_KOMODO_IMAGE_TAG:-latest}
|
|
labels:
|
|
komodo.skip: null # Prevent Komodo from stopping with StopAllContainers
|
|
restart: unless-stopped
|
|
logging:
|
|
driver: ${COMPOSE_LOGGING_DRIVER:-local}
|
|
networks:
|
|
- traefik-net
|
|
ports:
|
|
- 9120:9120
|
|
env_file: .env
|
|
environment:
|
|
KOMODO_DATABASE_ADDRESS: ${MONGODB_IP}:27017
|
|
# KOMODO_DATABASE_USERNAME: ${KOMODO_DB_USERNAME}
|
|
# KOMODO_DATABASE_PASSWORD: ${KOMODO_DB_PASSWORD}
|
|
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: null # Prevent Komodo from stopping with StopAllContainers
|
|
restart: unless-stopped
|
|
logging:
|
|
driver: ${COMPOSE_LOGGING_DRIVER:-local}
|
|
networks:
|
|
- traefik-net
|
|
env_file: .env
|
|
environment:
|
|
PERIPHERY_REPO_DIR: ${PERIPHERY_ROOT_DIRECTORY:-/etc/komodo}/repos
|
|
PERIPHERY_STACK_DIR: ${PERIPHERY_ROOT_DIRECTORY:-/etc/komodo}/stacks
|
|
PERIPHERY_SSL_KEY_FILE: ${PERIPHERY_ROOT_DIRECTORY:-/etc/komodo}/ssl/key.pem
|
|
PERIPHERY_SSL_CERT_FILE: ${PERIPHERY_ROOT_DIRECTORY:-/etc/komodo}/ssl/cert.pem
|
|
volumes:
|
|
## Mount external docker socket
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- /proc:/proc
|
|
- ${PERIPHERY_ROOT_DIRECTORY:-/etc/komodo}:${PERIPHERY_ROOT_DIRECTORY:-/etc/komodo}
|
|
volumes:
|
|
# Core
|
|
repo-cache: null
|
|
networks:
|
|
traefik-net:
|
|
external: true
|