-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fe95c8c
commit 5692d09
Showing
3 changed files
with
100 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
COMPOSE_FILE='notification-server.yml' | ||
COMPOSE_PATH_SEPARATOR=',' | ||
|
||
|
||
NOTIFICATION_SERVER_IMAGE=seafileltd/notification-server:12.0-latest | ||
|
||
NOTIFICATION_SERVER_VOLUME=/opt/notification-data | ||
|
||
SEAFILE_MYSQL_DB_HOST=192.168.0.2 | ||
SEAFILE_MYSQL_DB_USER=seafile | ||
SEAFILE_MYSQL_DB_PASSWORD=PASSWORD | ||
|
||
TIME_ZONE=Etc/UTC | ||
|
||
JWT_PRIVATE_KEY= | ||
|
||
SEAFILE_SERVER_HOSTNAME=example.seafile.com | ||
SEAFILE_SERVER_PROTOCOL=http | ||
|
34 changes: 34 additions & 0 deletions
34
manual/docker/notification-server/standalone/notification-server.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
services: | ||
|
||
notification-server: | ||
image: ${NOTIFICATION_SERVER_IMAGE:-seafileltd/notification-server:12.0-latest} | ||
container_name: notification-server | ||
restart: always | ||
volumes: | ||
- ${NOTIFICATION_SERVER_VOLUME:-/opt/notification-data}:/shared | ||
ports: | ||
- "8083:8083" | ||
environment: | ||
- SEAFILE_MYSQL_DB_HOST=${SEAFILE_MYSQL_DB_HOST:-db} | ||
- SEAFILE_MYSQL_DB_PORT=${SEAFILE_MYSQL_DB_PORT:-3306} | ||
- SEAFILE_MYSQL_DB_USER=${SEAFILE_MYSQL_DB_USER:-seafile} | ||
- SEAFILE_MYSQL_DB_PASSWORD=${SEAFILE_MYSQL_DB_PASSWORD:?Variable is not set or empty} | ||
- SEAFILE_MYSQL_DB_CCNET_DB_NAME=${SEAFILE_MYSQL_DB_CCNET_DB_NAME:-ccnet_db} | ||
- SEAFILE_MYSQL_DB_SEAFILE_DB_NAME=${SEAFILE_MYSQL_DB_SEAFILE_DB_NAME:-seafile_db} | ||
- JWT_PRIVATE_KEY=${JWT_PRIVATE_KEY:?Variable is not set or empty} | ||
- SEAFILE_LOG_TO_STDOUT=${SEAFILE_LOG_TO_STDOUT:-false} | ||
- NOTIFICATION_SERVER_LOG_LEVEL=${NOTIFICATION_SERVER_LOG_LEVEL:-info} | ||
labels: | ||
caddy: ${SEAFILE_SERVER_PROTOCOL:-http}://${SEAFILE_SERVER_HOSTNAME:?Variable is not set or empty} | ||
[email protected]_header: "Connection *Upgrade*" | ||
[email protected]_header: "Upgrade websocket" | ||
caddy.0_reverse_proxy: "@ws {{upstreams 8083}}" | ||
caddy.1_handle_path: "/notification*" | ||
caddy.1_handle_path.0_rewrite: "* {uri}" | ||
caddy.1_handle_path.1_reverse_proxy: "{{upstreams 8083}}" | ||
networks: | ||
- seafile-net | ||
|
||
networks: | ||
seafile-net: | ||
name: seafile-net |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters