Add new seafile 12.0 configuration
'seafile' now comprises two containers: seafile-mysql and seafile-server.
This commit is contained in:
@@ -1,14 +1,47 @@
|
|||||||
services:
|
services:
|
||||||
seafile:
|
seafile-mysql:
|
||||||
container_name: seafile
|
image: mariadb:10.11
|
||||||
environment:
|
container_name: seafile-mysql
|
||||||
- MODE=autorun
|
|
||||||
image: gronis/seafile:10.0.1
|
|
||||||
ports:
|
ports:
|
||||||
- 8100:8000
|
- "13306:3306"
|
||||||
- 8180:8080
|
environment:
|
||||||
- 8182:8082
|
- MYSQL_ROOT_PASSWORD=ROOT_PASSWORD
|
||||||
restart: unless-stopped
|
- MYSQL_LOG_CONSOLE=true
|
||||||
|
- MARIADB_AUTO_UPGRADE=1
|
||||||
volumes:
|
volumes:
|
||||||
- /opt/seafile:/seafile:rw
|
- /opt/seafile/database:/var/lib/mysql
|
||||||
- /media/seafile:/seafile/seafile-data:rw
|
healthcheck:
|
||||||
|
test:
|
||||||
|
[
|
||||||
|
"CMD",
|
||||||
|
"/usr/local/bin/healthcheck.sh",
|
||||||
|
"--connect",
|
||||||
|
"--mariadbupgrade",
|
||||||
|
"--innodb_initialized",
|
||||||
|
]
|
||||||
|
interval: 20s
|
||||||
|
start_period: 30s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 10
|
||||||
|
|
||||||
|
seafile-server:
|
||||||
|
image: seafileltd/seafile-mc:12.0-latest
|
||||||
|
container_name: seafile-server
|
||||||
|
ports:
|
||||||
|
- "8082:80"
|
||||||
|
volumes:
|
||||||
|
- /opt/seafile/server:/shared
|
||||||
|
- /media/seafile:/shared/seafile/seafile-data
|
||||||
|
environment:
|
||||||
|
- DB_HOST=seafile-mysql
|
||||||
|
- DB_PORT=3306
|
||||||
|
- DB_ROOT_PASSWD=ROOT_PASSWORD
|
||||||
|
- DB_PASSWORD=PASSWORD
|
||||||
|
- TIME_ZONE=Europe/Amsterdam
|
||||||
|
- INIT_SEAFILE_ADMIN_EMAIL=admin@veenboer.xyz
|
||||||
|
- INIT_SEAFILE_ADMIN_PASSWORD=asecret
|
||||||
|
- SEAFILE_SERVER_HOSTNAME=seafile.bram.veenboer.xyz
|
||||||
|
- SEAFILE_SERVER_PROTOCOL=http
|
||||||
|
- JWT_PRIVATE_KEY=8LzWzeuQ41z1i8fc1cr1L7Kw80VpTgmT
|
||||||
|
depends_on:
|
||||||
|
- seafile-mysql
|
||||||
|
|||||||
Reference in New Issue
Block a user