Komodo initial commit
This commit is contained in:
23
docker/compose/ferretdb.yaml
Normal file
23
docker/compose/ferretdb.yaml
Normal file
@@ -0,0 +1,23 @@
|
||||
services:
|
||||
ferretdb:
|
||||
container_name: ${FERRETDB_CONTAINER_NAME}
|
||||
image: ${FERRETDB_IMAGE}
|
||||
restart: ${FERRETDB_RESTART_POLICY}
|
||||
security_opt:
|
||||
- no-new-privileges:true
|
||||
labels:
|
||||
- "komodo.skip=" # Prevent Komodo from stopping with StopAllContainers
|
||||
#depends_on:
|
||||
# - postgres
|
||||
logging:
|
||||
driver: ${COMPOSE_LOGGING_DRIVER:-local}
|
||||
networks:
|
||||
- komodo
|
||||
# ports:
|
||||
# - 27017:27017
|
||||
env_file: ../env/komodo.env
|
||||
environment:
|
||||
#- FERRETDB_POSTGRESQL_URL=postgres://komodo:komodo@10.0.6.178/komodo?sslmode=disable
|
||||
- FERRETDB_POSTGRESQL_URL=postgres://${PSQL_HOST}:${PSQL_PORT}/${KOMODO_DATABASE_DB_NAME:-komodo}?sslmode=disable
|
||||
#networks:
|
||||
# komodo: {}
|
||||
64
docker/compose/komodo-core.yaml
Normal file
64
docker/compose/komodo-core.yaml
Normal file
@@ -0,0 +1,64 @@
|
||||
secrets:
|
||||
komodo_passkey:
|
||||
file: ${SECRETSDIR}/komodo/komodo_passkey
|
||||
komodo_webhook_secret:
|
||||
file: ${SECRETSDIR}/komodo/komodo_webhook_secret
|
||||
komodo_jwt_secret:
|
||||
file: ${SECRETSDIR}/komodo/komodo_jwt_secret
|
||||
komodo_oidc_client_id:
|
||||
file: ${SECRETSDIR}/komodo/komodo_oidc_client_id
|
||||
komodo_oidc_client_secret:
|
||||
file: ${SECRETSDIR}/komodo/komodo_oidc_client_secret
|
||||
services:
|
||||
core:
|
||||
container_name: ${KOMODO_CORE_CONTAINER_NAME}
|
||||
image: ${KOMODO_CORE_IMAGE}:${COMPOSE_KOMODO_IMAGE_TAG:-latest}
|
||||
restart: ${KOMODO_RESTART_POLICY}
|
||||
secrets:
|
||||
- komodo_passkey
|
||||
- komodo_webhook_secret
|
||||
- komodo_jwt_secret
|
||||
- komodo_oidc_client_id
|
||||
- komodo_oidc_client_secret
|
||||
labels:
|
||||
- "komodo.skip=" # Prevent Komodo from stopping with StopAllContainers
|
||||
- "traefik.enable=true"
|
||||
## HTTP Routers
|
||||
- "traefik.http.routers.${KOMODO_HOSTNAME}-rtr.entrypoints=https"
|
||||
- "traefik.http.routers.${KOMODO_HOSTNAME}-rtr.rule=(`${KOMODO_HOSTNAME}.${DOMAINNAME1}`)"
|
||||
## Middlewares
|
||||
# - "traefik.http.routers.${PRIVATEBIN_HOSTNAME}-rtr.middlewares=chain-authelia@file"
|
||||
- "traefik.http.routers.${KOMODO_HOSTNAME}-rtr.middlewares=chain-no-auth@file"
|
||||
## HTTP Services
|
||||
- "traefik.http.routers.${KOMODO_HOSTNAME}-rtr.service=${KOMODO_HOSTNAME}-svc"
|
||||
- "traefik.http.services.${KOMODO_HOSTNAME}-svc.loadbalancer.server.port=9120"
|
||||
depends_on:
|
||||
- ferretdb
|
||||
logging:
|
||||
driver: ${COMPOSE_LOGGING_DRIVER:-local}
|
||||
networks:
|
||||
- ${KOMODO_NETWORk_ID}
|
||||
- komodo
|
||||
ports:
|
||||
- 9120:9120
|
||||
env_file: ../env/komodo.env
|
||||
environment:
|
||||
KOMODO_DATABASE_URI: mongodb://${KOMODO_DB_USERNAME}:${KOMODO_DB_PASSWORD}@ferretdb:27017/${KOMODO_DATABASE_DB_NAME:-komodo}?authMechanism=PLAIN
|
||||
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
|
||||
volumes:
|
||||
# Core
|
||||
repo-cache:
|
||||
#networks:
|
||||
# komodo: {}
|
||||
# proxy:
|
||||
# external: true
|
||||
39
docker/compose/komodo-periphery.yaml
Normal file
39
docker/compose/komodo-periphery.yaml
Normal file
@@ -0,0 +1,39 @@
|
||||
secrets:
|
||||
komodo_passkey:
|
||||
file: ${SECRETSDIR}/komodo/komodo_passkey
|
||||
services:
|
||||
## Deploy Periphery container using this block,
|
||||
## or deploy the Periphery binary with systemd using
|
||||
## https://github.com/mbecker20/komodo/tree/main/scripts
|
||||
periphery:
|
||||
container_name: ${KOMODO_PERTIPHERY_CONTAINER_NAME}
|
||||
image: ${KOMODO_PERTIPHERY_IMAGE}:${COMPOSE_KOMODO_IMAGE_TAG:-latest}
|
||||
restart: ${KOMODO_RESTART_POLICY}
|
||||
labels:
|
||||
- "komodo.skip=" # Prevent Komodo from stopping with StopAllContainers
|
||||
logging:
|
||||
driver: ${COMPOSE_LOGGING_DRIVER:-local}
|
||||
networks:
|
||||
- komodo
|
||||
env_file: ../env/komodo.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
|
||||
## Allow Periphery to see processes outside of container
|
||||
- /proc:/proc
|
||||
## Specify the Periphery agent root directory.
|
||||
## Must be the same inside and outside the container,
|
||||
## or docker will get confused. See https://github.com/mbecker20/komodo/discussions/180.
|
||||
## Default: /etc/komodo.
|
||||
- ${PERIPHERY_ROOT_DIRECTORY:-/etc/komodo}:${PERIPHERY_ROOT_DIRECTORY:-/etc/komodo}
|
||||
secrets:
|
||||
- komodo_passkey
|
||||
#networks:
|
||||
# komodo: {}
|
||||
# proxy:
|
||||
# external: true
|
||||
4
docker/compose/networks/komodo.yaml
Normal file
4
docker/compose/networks/komodo.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
networks:
|
||||
komodo:
|
||||
name: komodo
|
||||
driver: bridge
|
||||
Reference in New Issue
Block a user