2020-04-26 01:55:18 +08:00
|
|
|
version: '2.0'
|
|
|
|
services:
|
|
|
|
db:
|
2023-01-12 04:25:44 +08:00
|
|
|
image: mariadb:10.5
|
2020-04-26 01:55:18 +08:00
|
|
|
environment:
|
|
|
|
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
|
|
|
|
- MYSQL_LOG_CONSOLE=true
|
|
|
|
volumes:
|
|
|
|
- ${SEAFILE_TEST_DATA}/${NAME}/seafile-mysql/db:/var/lib/mysql
|
|
|
|
|
|
|
|
memcached:
|
2023-01-12 04:25:44 +08:00
|
|
|
image: memcached:1.6.9
|
2020-04-26 01:55:18 +08:00
|
|
|
entrypoint: memcached -m 256
|
|
|
|
|
|
|
|
seafile:
|
|
|
|
image: seafileltd/seafile-mc:${SEAFILE_VERSION}
|
|
|
|
ports:
|
|
|
|
- "${SEAFILE_IP}:${SEAFILE_PORT}:80"
|
|
|
|
volumes:
|
|
|
|
- ${SEAFILE_TEST_DATA}/${NAME}/seafile-data:/shared
|
|
|
|
environment:
|
|
|
|
- DB_HOST=db
|
|
|
|
- DB_ROOT_PASSWD=${MYSQL_ROOT_PASSWORD}
|
|
|
|
- TIME_ZONE=Etc/UTC
|
|
|
|
- SEAFILE_ADMIN_EMAIL=${SEAFILE_ADMIN_EMAIL}
|
|
|
|
- SEAFILE_ADMIN_PASSWORD=${SEAFILE_ADMIN_PASSWORD}
|
|
|
|
- SEAFILE_SERVER_LETSENCRYPT=false
|
|
|
|
- SEAFILE_SERVER_HOSTNAME=${SEAFILE_IP}:${SEAFILE_PORT}
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- memcached
|