forked from github-starred/komodo
* docker builders / buildx prune backend * seems to work with ferret * improve UI error messages * compose files * update compose variables comment * update compose files * update sqlite compose * env vars and others support end of line comment starting with " #" * aws and hetzner default user data for hands free setup * move configs * new core config * smth * implement disable user registration * clean up compose files * add DISABLE_USER_REGISTRATION * 1.14.2 * final
103 lines
3.1 KiB
YAML
103 lines
3.1 KiB
YAML
services:
|
|
# core:
|
|
# build:
|
|
# context: .
|
|
# dockerfile: bin/core/Dockerfile
|
|
# restart: unless-stopped
|
|
# depends_on:
|
|
# - mongo
|
|
# logging:
|
|
# driver: local # enable log rotation by default. see `https://docs.docker.com/config/containers/logging/local/`
|
|
# network_mode: host
|
|
# environment: # https://github.com/mbecker20/komodo/blob/main/config/core.config.toml
|
|
# KOMODO_HOST: http://localhost:9120
|
|
# KOMODO_TITLE: Komodo Test
|
|
# KOMODO_ENSURE_SERVER: http://localhost:8120 # Creates the "default" server.
|
|
# ## MONGO
|
|
# KOMODO_MONGO_ADDRESS: localhost:27017
|
|
# ## KEYS
|
|
# KOMODO_PASSKEY: a_random_passkey # used to auth against periphery
|
|
# KOMODO_WEBHOOK_SECRET: a_random_secret # used to authenticate incoming webhooks
|
|
# KOMODO_JWT_SECRET: a_random_jwt_secret # Optional. If empty, will have to log in again on restart.
|
|
# ## AUTH
|
|
# KOMODO_LOCAL_AUTH: true
|
|
# KOMODO_JWT_TTL: 2-wk
|
|
# ## POLLING
|
|
# KOMODO_MONITORING_INTERVAL: 5-sec
|
|
# KOMODO_STACK_POLL_INTERVAL: 1-min
|
|
# KOMODO_SYNC_POLL_INTERVAL: 1-min
|
|
# KOMODO_BUILD_POLL_INTERVAL: 1-min
|
|
# KOMODO_REPO_POLL_INTERVAL: 1-min
|
|
|
|
periphery:
|
|
build:
|
|
context: .
|
|
dockerfile: bin/periphery/Dockerfile
|
|
restart: unless-stopped
|
|
logging:
|
|
driver: local
|
|
network_mode: host
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- repos:/etc/komodo/repos # manage repos in a docker volume, or change it to an accessible host directory.
|
|
- stacks:/etc/komodo/stacks # manage stacks in a docker volume, or change it to an accessible host directory.
|
|
environment:
|
|
# If the disk size is overreporting, can use one of these to
|
|
# whitelist / blacklist the disks, whichever is easier.
|
|
PERIPHERY_INCLUDE_DISK_MOUNTS: /etc/hostname
|
|
# PERIPHERY_EXCLUDE_DISK_MOUNTS: /snap
|
|
|
|
# mongo:
|
|
# image: mongo
|
|
# command: --quiet # suppress mongo logs a bit
|
|
# restart: unless-stopped
|
|
# logging:
|
|
# driver: local
|
|
# network_mode: host
|
|
# volumes:
|
|
# - mongo-data:/data/db
|
|
# - mongo-config:/data/configdb
|
|
# environment:
|
|
# MONGO_INITDB_ROOT_USERNAME: admin # change these
|
|
# MONGO_INITDB_ROOT_PASSWORD: admin
|
|
|
|
ferretdb-sqlite:
|
|
image: ghcr.io/ferretdb/ferretdb
|
|
restart: unless-stopped
|
|
logging:
|
|
driver: local
|
|
network_mode: host
|
|
environment:
|
|
- FERRETDB_HANDLER=sqlite
|
|
volumes:
|
|
- sqlite-data:/state
|
|
|
|
# ferretdb-pg:
|
|
# image: ghcr.io/ferretdb/ferretdb
|
|
# restart: unless-stopped
|
|
# logging:
|
|
# driver: local
|
|
# network_mode: host
|
|
# environment:
|
|
# - FERRETDB_POSTGRESQL_URL=postgres://localhost:5432/komodo
|
|
|
|
# postgres:
|
|
# image: postgres
|
|
# restart: unless-stopped
|
|
# logging:
|
|
# driver: local
|
|
# network_mode: host
|
|
# environment:
|
|
# - POSTGRES_USER=admin
|
|
# - POSTGRES_PASSWORD=admin
|
|
# - POSTGRES_DB=komodo
|
|
# volumes:
|
|
# - pg-data:/var/lib/postgresql/data
|
|
|
|
volumes:
|
|
repos:
|
|
stacks:
|
|
mongo-data:
|
|
mongo-config:
|
|
sqlite-data:
|
|
pg-data: |