57 lines
1.8 KiB
YAML
57 lines
1.8 KiB
YAML
services:
|
|
seafile:
|
|
build:
|
|
context: /opt/seafile/docker/
|
|
container_name: seafile
|
|
environment:
|
|
- MODE=autorun
|
|
image: gronis/seafile:10.0.1
|
|
# image: seafile
|
|
ports:
|
|
- 8100:8000
|
|
- 8180:8080
|
|
- 8182:8082
|
|
restart: unless-stopped
|
|
volumes:
|
|
- /opt/seafile:/seafile
|
|
- /media/sync/seafile:/seafile/seafile-data
|
|
|
|
seafile-db:
|
|
image: mariadb:10.11
|
|
container_name: seafile-mysql
|
|
environment:
|
|
- MYSQL_ROOT_PASSWORD=${SEAFILE_MYSQL_DB_PASSWORD}
|
|
- MYSQL_LOG_CONSOLE=true
|
|
- MARIADB_AUTO_UPGRADE=1
|
|
volumes:
|
|
- /opt/seafile-mysql/db:/var/lib/mysql # Required, specifies the path to MySQL data persistent store.
|
|
env_file:
|
|
- /opt/seafile-new/.env
|
|
|
|
seafile-memcached:
|
|
image: memcached:1.6.18
|
|
container_name: seafile-memcached
|
|
entrypoint: memcached -m 256
|
|
|
|
seafile-server:
|
|
image: seafileltd/seafile-mc:10.0-latest
|
|
container_name: seafile-server
|
|
ports:
|
|
- "12380:80"
|
|
volumes:
|
|
- /opt/seafile-new/server:/shared
|
|
|
|
environment:
|
|
- DB_HOST=seafile-db
|
|
- DB_ROOT_PASSWD=${SEAFILE_MYSQL_DB_PASSWORD}
|
|
#- TIME_ZONE=Europe/Amsterdam # Optional, default is UTC. Should be uncomment and set to your local time zone.
|
|
#- SEAFILE_ADMIN_EMAIL=me@example.com # Specifies Seafile admin user, default is 'me@example.com'.
|
|
#- SEAFILE_ADMIN_PASSWORD=asecret # Specifies Seafile admin password, default is 'asecret'.
|
|
#- SEAFILE_SERVER_LETSENCRYPT=false # Whether to use https or not.
|
|
#- SEAFILE_SERVER_HOSTNAME=docs.seafile.com # Specifies your host name if https is enabled.
|
|
depends_on:
|
|
- seafile-db
|
|
- seafile-memcached
|
|
env_file:
|
|
- /opt/seafile-new/.env
|