63 lines
2.0 KiB
YAML
63 lines
2.0 KiB
YAML
services:
|
|
memcached:
|
|
image: memcached:1.6.29
|
|
container_name: seafile-memcached
|
|
entrypoint: memcached -m 256
|
|
networks:
|
|
- seafile-net
|
|
|
|
# notification-server:
|
|
# image: seafileltd/notification-server:12.0-latest
|
|
# container_name: seafile-notification-server
|
|
# restart: unless-stopped
|
|
# volumes:
|
|
# - volumes/seafile/noti:/shared
|
|
# environment:
|
|
# - SEAFILE_MYSQL_DB_HOST=${SEAFILE_MYSQL_DB_HOST:-db}
|
|
# - 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=${SEAFILE_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}
|
|
# caddy.@ws.0_header: "Connection *Upgrade*"
|
|
# caddy.@ws.1_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}}"
|
|
# depends_on:
|
|
# db:
|
|
# condition: service_healthy
|
|
# networks:
|
|
# - seafile-net
|
|
|
|
seafile:
|
|
image: seafileltd/seafile-mc:12.0-latest
|
|
container_name: seafile
|
|
volumes:
|
|
# - /opt/seafile-mysql:/shared
|
|
- seafile-vol:/shared
|
|
env_file: "priv/env"
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
memcached:
|
|
condition: service_started
|
|
networks:
|
|
- seafile-net
|
|
- caddy-net
|
|
|
|
volumes:
|
|
seafile-vol:
|
|
|
|
networks:
|
|
seafile-net:
|
|
external: false
|
|
caddy-net:
|
|
external: false
|
|
driver: bridge
|