Advertisement
vnl

komodo_synology_docker_compose.yml

vnl
Dec 21st, 2024
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 3.16 KB | None | 0 0
  1. ################################
  2. # 🦎 KOMODO COMPOSE - MONGO 🦎 #
  3. ################################
  4.  
  5. ## This compose file will deploy:
  6. ##   1. MongoDB
  7. ##   2. Komodo Core
  8. ##   3. Komodo Periphery
  9.  
  10. services:
  11.   mongo:
  12.     image: mongo
  13.     labels:
  14.       komodo.skip: # Prevent Komodo from stopping with StopAllContainers
  15.     command: --quiet --wiredTigerCacheSizeGB 0.25
  16.     restart: unless-stopped
  17.     logging:
  18.       driver: ${COMPOSE_LOGGING_DRIVER:-local}
  19.     networks:
  20.      - komodo
  21.     # ports:
  22.     #   - 27017:27017
  23.     volumes:
  24.      - /volume1/docker/komodo/mongo-data:/data/db
  25.       - /volume1/docker/komodo/mongo-config:/data/configdb
  26.     environment:
  27.       MONGO_INITDB_ROOT_USERNAME: ${DB_USERNAME}
  28.       MONGO_INITDB_ROOT_PASSWORD: ${DB_PASSWORD}
  29.  
  30.   core:
  31.     image: ghcr.io/mbecker20/komodo:${COMPOSE_KOMODO_IMAGE_TAG:-latest}
  32.     labels:
  33.       komodo.skip: # Prevent Komodo from stopping with StopAllContainers
  34.     restart: unless-stopped
  35.     depends_on:
  36.      - mongo
  37.     logging:
  38.       driver: ${COMPOSE_LOGGING_DRIVER:-local}
  39.     networks:
  40.      - komodo
  41.     ports:
  42.      - 9120:9120
  43.     env_file: ./compose.env
  44.     environment:
  45.       KOMODO_DATABASE_ADDRESS: mongo:27017
  46.       KOMODO_DATABASE_USERNAME: ${DB_USERNAME}
  47.       KOMODO_DATABASE_PASSWORD: ${DB_PASSWORD}
  48.     volumes:
  49.      ## Core cache for repos for latest commit hash / contents
  50.       - /volume1/docker/komodo/repo-cache:/repo-cache
  51.       ## Store sync files on server
  52.       # - /path/to/syncs:/syncs
  53.       ## Optionally mount a custom core.config.toml
  54.       # - /path/to/core.config.toml:/config/config.toml
  55.     ## Allows for systemd Periphery connection at
  56.     ## "http://host.docker.internal:8120"
  57.     # extra_hosts:
  58.     #   - host.docker.internal:host-gateway
  59.  
  60.   ## Deploy Periphery container using this block,
  61.   ## or deploy the Periphery binary with systemd using
  62.   ## https://github.com/mbecker20/komodo/tree/main/scripts
  63.   periphery:
  64.     image: ghcr.io/mbecker20/periphery:${COMPOSE_KOMODO_IMAGE_TAG:-latest}
  65.     labels:
  66.       komodo.skip: # Prevent Komodo from stopping with StopAllContainers
  67.     restart: unless-stopped
  68.     logging:
  69.       driver: ${COMPOSE_LOGGING_DRIVER:-local}
  70.     networks:
  71.      - compose
  72.     env_file: ./compose.env
  73.     volumes:
  74.      ## Mount external docker socket
  75.       - /var/run/docker.sock:/var/run/docker.sock
  76.       ## Allow Periphery to see processes outside of container
  77.       - /proc:/proc
  78.       ## use self signed certs in docker volume,
  79.       ## or mount your own signed certs.
  80.       - /volume1/docker/komodo/ssl-certs:/etc/komodo/ssl
  81.       ## manage repos in a docker volume,
  82.       ## or change it to an accessible host directory.
  83.       - /volume1/docker/komodo/repos:/etc/komodo/repos
  84.       ## manage stack files in a docker volume,
  85.       ## or change it to an accessible host directory.
  86.       - /volume1/docker/komodo/stacks:/etc/komodo/stacks
  87.       ## Optionally mount a path to store compose files
  88.       # - /path/to/compose:/host/compose
  89.  
  90. volumes:
  91.  # Mongo
  92.   mongo-data:
  93.   mongo-config:
  94.  # Core
  95.   repo-cache:
  96.  # Periphery
  97.   ssl-certs:
  98.   repos:
  99.   stacks:
  100. networks:
  101.   komodo:
  102.     driver: bridge
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement