Compare commits
7 Commits
44356e5bd2
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 6b1c5976d4 | |||
| 5e693c65af | |||
| 2bb57fc006 | |||
| c2a2fd4dfc | |||
| 4018e82061 | |||
| b92cfc057e | |||
| c84404e29e |
23
arcane/docker-compose.yml
Normal file
23
arcane/docker-compose.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
services:
|
||||
arcane:
|
||||
image: ghcr.io/getarcaneapp/manager:v2.3.2
|
||||
container_name: arcane
|
||||
ports:
|
||||
- '3552:3552'
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- arcane-data:/app/data
|
||||
environment:
|
||||
- ENCRYPTION_KEY=your-32-char-encryption-key # 执行openssl rand -hex 32后复制填入
|
||||
- JWT_SECRET=your-jwt-secret # 执行openssl rand -hex 32后复制填入
|
||||
- TZ=Asia/Shanghai
|
||||
cgroup: host
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ['CMD', '/app/arcane', 'health']
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
|
||||
volumes:
|
||||
arcane-data:
|
||||
18
booklore/.env
Normal file
18
booklore/.env
Normal file
@@ -0,0 +1,18 @@
|
||||
# 应用设置
|
||||
APP_USER_ID=1000
|
||||
APP_GROUP_ID=1000
|
||||
TZ=Asia/Shanghai
|
||||
|
||||
# 数据库设置
|
||||
DATABASE_URL=jdbc:mariadb://mariadb:3306/booklore
|
||||
DB_USER=booklore
|
||||
DB_PASSWORD=5KdwTTCnxqNx # 修改此处的密码
|
||||
|
||||
# 存储设置
|
||||
DISK_TYPE=LOCAL
|
||||
|
||||
# MariaDB
|
||||
DB_USER_ID=1000
|
||||
DB_GROUP_ID=1000
|
||||
MYSQL_ROOT_PASSWORD=my8MGIFlSVUU # 修改此处的密码
|
||||
MYSQL_DATABASE=booklore
|
||||
48
booklore/docker-compose.yml
Normal file
48
booklore/docker-compose.yml
Normal file
@@ -0,0 +1,48 @@
|
||||
services:
|
||||
booklore:
|
||||
image: ghcr.io/booklore-app/booklore:v2.3.1 # 修改镜像标签
|
||||
container_name: booklore
|
||||
environment:
|
||||
- USER_ID=${APP_USER_ID}
|
||||
- GROUP_ID=${APP_GROUP_ID}
|
||||
- TZ=${TZ}
|
||||
- DATABASE_URL=${DATABASE_URL}
|
||||
- DATABASE_USERNAME=${DB_USER}
|
||||
- DATABASE_PASSWORD=${DB_PASSWORD}
|
||||
- DISK_TYPE=${DISK_TYPE}
|
||||
depends_on:
|
||||
mariadb:
|
||||
condition: service_healthy
|
||||
ports:
|
||||
- "6060:6060"
|
||||
volumes:
|
||||
- ./data:/app/data
|
||||
- ./books:/books
|
||||
- ./bookdrop:/bookdrop
|
||||
healthcheck:
|
||||
test: wget -q -O - http://localhost:6060/api/v1/healthcheck
|
||||
interval: 60s
|
||||
retries: 5
|
||||
start_period: 60s
|
||||
timeout: 10s
|
||||
restart: unless-stopped
|
||||
|
||||
mariadb:
|
||||
image: lscr.io/linuxserver/mariadb:11.4.5
|
||||
container_name: mariadb
|
||||
environment:
|
||||
- PUID=${DB_USER_ID}
|
||||
- PGID=${DB_GROUP_ID}
|
||||
- TZ=${TZ}
|
||||
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
|
||||
- MYSQL_DATABASE=${MYSQL_DATABASE}
|
||||
- MYSQL_USER=${DB_USER}
|
||||
- MYSQL_PASSWORD=${DB_PASSWORD}
|
||||
volumes:
|
||||
- ./mariadb/config:/config
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: [ "CMD", "mariadb-admin", "ping", "-h", "localhost" ]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 10
|
||||
89
mattermost/.env
Normal file
89
mattermost/.env
Normal file
@@ -0,0 +1,89 @@
|
||||
# Domain of service
|
||||
DOMAIN=chat.demo.com
|
||||
|
||||
# Container settings
|
||||
## Timezone inside the containers. The value needs to be in the form 'Europe/Berlin'.
|
||||
## A list of these tz database names can be looked up at Wikipedia
|
||||
## https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
|
||||
# 修改时区
|
||||
TZ=Asia/Shanghai
|
||||
RESTART_POLICY=unless-stopped
|
||||
|
||||
# Postgres settings
|
||||
## Documentation for this image and available settings can be found on hub.docker.com
|
||||
## https://hub.docker.com/_/postgres
|
||||
## Please keep in mind this will create a superuser and it's recommended to use a less privileged
|
||||
## user to connect to the database.
|
||||
## A guide on how to change the database user to a nonsuperuser can be found in docs/creation-of-nonsuperuser.md
|
||||
POSTGRES_IMAGE_TAG=18-alpine
|
||||
POSTGRES_DATA_PATH=./volumes/db/var/lib/postgresql/data
|
||||
|
||||
POSTGRES_USER=mmuser
|
||||
POSTGRES_PASSWORD=0dgzy56cdzlp
|
||||
POSTGRES_DB=mattermost
|
||||
|
||||
# Nginx
|
||||
## The nginx container will use a configuration found at the NGINX_MATTERMOST_CONFIG. The config aims
|
||||
## to be secure and uses a catch-all server vhost which will work out-of-the-box. For additional settings
|
||||
## or changes ones can edit it or provide another config. Important note: inside the container, nginx sources
|
||||
## every config file inside */etc/nginx/conf.d* ending with a *.conf* file extension.
|
||||
|
||||
## Inside the container the uid and gid is 101. The folder owner can be set with
|
||||
## `sudo chown -R 101:101 ./nginx` if needed.
|
||||
## Note that this repository requires nginx version 1.25.1 or later
|
||||
NGINX_IMAGE_TAG=alpine
|
||||
|
||||
## The folder containing server blocks and any additional config to nginx.conf
|
||||
NGINX_CONFIG_PATH=./nginx/conf.d
|
||||
NGINX_DHPARAMS_FILE=./nginx/dhparams4096.pem
|
||||
|
||||
CERT_PATH=./volumes/web/cert/chat.demo.com.pem
|
||||
KEY_PATH=./volumes/web/cert/chat.demo.com-key.pem
|
||||
#GITLAB_PKI_CHAIN_PATH=<path_to_your_gitlab_pki>/pki_chain.pem
|
||||
#CERT_PATH=./certs/etc/letsencrypt/live/${DOMAIN}/fullchain.pem
|
||||
#KEY_PATH=./certs/etc/letsencrypt/live/${DOMAIN}/privkey.pem
|
||||
|
||||
## Exposed ports to the host. Inside the container 80, 443 and 8443 will be used
|
||||
HTTPS_PORT=443
|
||||
HTTP_PORT=80
|
||||
CALLS_PORT=8443
|
||||
|
||||
# Mattermost settings
|
||||
## Inside the container the uid and gid is 2000. The folder owner can be set with
|
||||
## `sudo chown -R 2000:2000 ./volumes/app/mattermost`.
|
||||
MATTERMOST_CONFIG_PATH=./volumes/app/mattermost/config
|
||||
MATTERMOST_DATA_PATH=./volumes/app/mattermost/data
|
||||
MATTERMOST_LOGS_PATH=./volumes/app/mattermost/logs
|
||||
MATTERMOST_PLUGINS_PATH=./volumes/app/mattermost/plugins
|
||||
MATTERMOST_CLIENT_PLUGINS_PATH=./volumes/app/mattermost/client/plugins
|
||||
MATTERMOST_BLEVE_INDEXES_PATH=./volumes/app/mattermost/bleve-indexes
|
||||
|
||||
## Bleve index (inside the container)
|
||||
MM_BLEVESETTINGS_INDEXDIR=/mattermost/bleve-indexes
|
||||
|
||||
## This will be 'mattermost-enterprise-edition' or 'mattermost-team-edition' based on the version of Mattermost you're installing.
|
||||
MATTERMOST_IMAGE=mattermost-team-edition
|
||||
## Update the image tag if you want to upgrade your Mattermost version. You may also upgrade to the latest one. The example is based on the latest Mattermost ESR version.
|
||||
MATTERMOST_IMAGE_TAG=11.7.2
|
||||
|
||||
## Make Mattermost container readonly. This interferes with the regeneration of root.html inside the container. Only use
|
||||
## it if you know what you're doing.
|
||||
## See https://github.com/mattermost/docker/issues/18
|
||||
MATTERMOST_CONTAINER_READONLY=false
|
||||
|
||||
## The app port is only relevant for using Mattermost without the nginx container as reverse proxy. This is not meant
|
||||
## to be used with the internal HTTP server exposed but rather in case one wants to host several services on one host
|
||||
## or for using it behind another existing reverse proxy.
|
||||
APP_PORT=8065
|
||||
|
||||
## Configuration settings for Mattermost. Documentation on the variables and the settings itself can be found at
|
||||
## https://docs.mattermost.com/administration/config-settings.html
|
||||
## Keep in mind that variables set here will take precedence over the same setting in config.json. This includes
|
||||
## the system console as well and settings set with env variables will be greyed out.
|
||||
|
||||
## Below one can find necessary settings to spin up the Mattermost container
|
||||
MM_SQLSETTINGS_DRIVERNAME=postgres
|
||||
MM_SQLSETTINGS_DATASOURCE=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}?sslmode=disable&connect_timeout=10
|
||||
|
||||
## Example settings (any additional setting added here also needs to be introduced in the docker-compose.yml)
|
||||
MM_SERVICESETTINGS_SITEURL=https://${DOMAIN}
|
||||
41
mattermost/docker-compose.nginx.yml
Normal file
41
mattermost/docker-compose.nginx.yml
Normal file
@@ -0,0 +1,41 @@
|
||||
services:
|
||||
nginx:
|
||||
depends_on:
|
||||
- mattermost
|
||||
container_name: nginx_mattermost
|
||||
image: nginx:${NGINX_IMAGE_TAG}
|
||||
restart: ${RESTART_POLICY}
|
||||
security_opt:
|
||||
- no-new-privileges:true
|
||||
pids_limit: 100
|
||||
read_only: true
|
||||
tmpfs:
|
||||
- /var/run
|
||||
- /var/cache
|
||||
- /var/log/nginx
|
||||
volumes:
|
||||
- ${NGINX_CONFIG_PATH}:/etc/nginx/conf.d:ro
|
||||
- ${NGINX_DHPARAMS_FILE}:/dhparams4096.pem
|
||||
- ${CERT_PATH}:/cert.pem:ro
|
||||
- ${KEY_PATH}:/key.pem:ro
|
||||
- shared-webroot:/usr/share/nginx/html
|
||||
environment:
|
||||
# timezone inside container
|
||||
- TZ
|
||||
ports:
|
||||
- ${HTTPS_PORT}:443
|
||||
- ${HTTP_PORT}:80
|
||||
mattermost:
|
||||
ports:
|
||||
- ${CALLS_PORT}:${CALLS_PORT}/udp
|
||||
- ${CALLS_PORT}:${CALLS_PORT}/tcp
|
||||
|
||||
# Shared volume for Let's Encrypt certificate renewal with a webroot
|
||||
volumes:
|
||||
shared-webroot:
|
||||
name: shared-webroot
|
||||
|
||||
# This network name is being used for Let's Encrypt certificate renewal
|
||||
networks:
|
||||
default:
|
||||
name: mattermost
|
||||
73
mattermost/docker-compose.yml
Normal file
73
mattermost/docker-compose.yml
Normal file
@@ -0,0 +1,73 @@
|
||||
# https://docs.docker.com/compose/environment-variables/
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:${POSTGRES_IMAGE_TAG}
|
||||
restart: ${RESTART_POLICY}
|
||||
security_opt:
|
||||
- no-new-privileges:true
|
||||
# See https://docs.mattermost.com/administration-guide/scale/scaling-for-enterprise.html
|
||||
# for guidance on memory limits based on your deployment size.
|
||||
mem_limit: 16G
|
||||
read_only: true
|
||||
tmpfs:
|
||||
- /tmp
|
||||
- /var/run/postgresql
|
||||
volumes:
|
||||
- ${POSTGRES_DATA_PATH}:/var/lib/postgresql
|
||||
environment:
|
||||
# timezone inside container
|
||||
- TZ
|
||||
|
||||
# necessary Postgres options/variables
|
||||
- POSTGRES_USER
|
||||
- POSTGRES_PASSWORD
|
||||
- POSTGRES_DB
|
||||
|
||||
mattermost:
|
||||
depends_on:
|
||||
- postgres
|
||||
image: mattermost/${MATTERMOST_IMAGE}:${MATTERMOST_IMAGE_TAG}
|
||||
restart: ${RESTART_POLICY}
|
||||
security_opt:
|
||||
- no-new-privileges:true
|
||||
# See https://docs.mattermost.com/administration-guide/scale/scaling-for-enterprise.html
|
||||
# for guidance on memory limits based on your deployment size.
|
||||
mem_limit: 4G
|
||||
read_only: ${MATTERMOST_CONTAINER_READONLY}
|
||||
tmpfs:
|
||||
- /tmp
|
||||
volumes:
|
||||
- ${MATTERMOST_CONFIG_PATH}:/mattermost/config:rw
|
||||
- ${MATTERMOST_DATA_PATH}:/mattermost/data:rw
|
||||
- ${MATTERMOST_LOGS_PATH}:/mattermost/logs:rw
|
||||
- ${MATTERMOST_PLUGINS_PATH}:/mattermost/plugins:rw
|
||||
- ${MATTERMOST_CLIENT_PLUGINS_PATH}:/mattermost/client/plugins:rw
|
||||
- ${MATTERMOST_BLEVE_INDEXES_PATH}:/mattermost/bleve-indexes:rw
|
||||
# When you want to use SSO with GitLab, you have to add the cert pki chain of GitLab inside Alpine
|
||||
# to avoid Token request failed: certificate signed by unknown authority
|
||||
# (link: https://github.com/mattermost/mattermost-server/issues/13059 and https://github.com/mattermost/docker/issues/34)
|
||||
# - ${GITLAB_PKI_CHAIN_PATH}:/etc/ssl/certs/pki_chain.pem:ro
|
||||
environment:
|
||||
# timezone inside container
|
||||
- TZ
|
||||
|
||||
# necessary Mattermost options/variables (see env.example)
|
||||
- MM_SQLSETTINGS_DRIVERNAME
|
||||
- MM_SQLSETTINGS_DATASOURCE
|
||||
|
||||
# necessary for bleve
|
||||
- MM_BLEVESETTINGS_INDEXDIR
|
||||
|
||||
# additional settings
|
||||
- MM_SERVICESETTINGS_SITEURL
|
||||
|
||||
# If you use rolling image tags and feel lucky watchtower can automatically pull new images and
|
||||
# instantiate containers from it. https://containrrr.dev/watchtower/
|
||||
# Please keep in mind watchtower will have access on the docker socket. This can be a security risk.
|
||||
#
|
||||
# watchtower:
|
||||
# container_name: watchtower
|
||||
# image: containrrr/watchtower:latest
|
||||
# restart: unless-stopped
|
||||
# volumes:
|
||||
# - /var/run/docker.sock:/var/run/docker.sock
|
||||
@@ -1,6 +1,6 @@
|
||||
services:
|
||||
planka:
|
||||
image: ghcr.io/plankanban/planka:2.0.0-rc.4
|
||||
image: ghcr.io/plankanban/planka:2.1.1
|
||||
restart: on-failure
|
||||
# 需对文件夹授权chown -R 1000:1000 /home/planka/
|
||||
volumes:
|
||||
@@ -11,7 +11,7 @@ services:
|
||||
ports:
|
||||
- 3000:1337
|
||||
environment:
|
||||
- BASE_URL=http://localhost:3000
|
||||
- BASE_URL=http://localhost:3000 # 修改IP地址
|
||||
- DATABASE_URL=postgresql://postgres@postgres/planka
|
||||
|
||||
# Optionally store the database password in secrets:
|
||||
|
||||
Reference in New Issue
Block a user