45 lines
1.3 KiB
YAML
45 lines
1.3 KiB
YAML
services:
|
|
db:
|
|
image: mariadb:10.11
|
|
container_name: seafile-mysql
|
|
env_file:
|
|
- .env
|
|
environment:
|
|
- MYSQL_ROOT_PASSWORD=${DB_ROOT_PASSWORD} # Required, set the root's password of MySQL service.
|
|
- MYSQL_LOG_CONSOLE=true
|
|
- MARIADB_AUTO_UPGRADE=1
|
|
volumes:
|
|
- ${MYSQL_DB}/db:/var/lib/mysql # Required, specifies the path to MySQL data persistent store.
|
|
networks:
|
|
- seafile-net
|
|
|
|
memcached:
|
|
image: memcached:1.6.18
|
|
container_name: seafile-memcached
|
|
entrypoint: memcached -m 256
|
|
networks:
|
|
- seafile-net
|
|
|
|
seafile:
|
|
image: seafileltd/seafile-mc:11.0-latest
|
|
container_name: seafile
|
|
ports:
|
|
- "80:80"
|
|
# - "443:443" # If https is enabled, cancel the comment.
|
|
volumes:
|
|
- ${UPLOAD_DATA}:/shared # Required, specifies the path to Seafile data persistent store.
|
|
env_file:
|
|
- .env
|
|
environment:
|
|
- DB_HOST=db
|
|
- DB_ROOT_PASSWD=${DB_ROOT_PASSWORD} # Required, set the root's password of MySQL service.
|
|
- TIME_ZONE=America/Denver # Optional, default is UTC. Should be uncomment and set to your local time zone.
|
|
depends_on:
|
|
- db
|
|
- memcached
|
|
networks:
|
|
- seafile-net
|
|
|
|
networks:
|
|
seafile-net:
|