official seafile container
This commit is contained in:
@@ -16,7 +16,7 @@ services:
|
||||
- /opt/seafile:/seafile
|
||||
- /media/sync/seafile:/seafile/seafile-data
|
||||
|
||||
seafile-db:
|
||||
seafile-mysql:
|
||||
image: mariadb:10.11
|
||||
container_name: seafile-mysql
|
||||
environment:
|
||||
@@ -24,7 +24,8 @@ services:
|
||||
- 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.
|
||||
- /opt/seafile-new/db:/var/lib/mysql
|
||||
- /opt/seafile-new/tmp:/host
|
||||
env_file:
|
||||
- /opt/seafile-new/.env
|
||||
|
||||
@@ -39,18 +40,16 @@ services:
|
||||
ports:
|
||||
- "12380:80"
|
||||
volumes:
|
||||
- /opt/seafile-new/tmp:/host
|
||||
- /opt/seafile-new/tmp/setup-seafile-mysql.py:/scripts/setup-seafile-mysql.py
|
||||
- /opt/seafile-new/server:/shared
|
||||
|
||||
- /media/sync/seafile:/shared/seafile/seafile-data
|
||||
environment:
|
||||
- DB_HOST=seafile-db
|
||||
- DB_HOST=seafile-mysql
|
||||
- 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.
|
||||
- TIME_ZONE=Europe/Amsterdam
|
||||
depends_on:
|
||||
- seafile-db
|
||||
- seafile-mysql
|
||||
- seafile-memcached
|
||||
env_file:
|
||||
- /opt/seafile-new/.env
|
||||
|
||||
Reference in New Issue
Block a user