54 lines
1.3 KiB
YAML
54 lines
1.3 KiB
YAML
version: '2.0'
|
|
services:
|
|
db:
|
|
image: mariadb:10.6
|
|
container_name: seafile-mysql
|
|
environment:
|
|
- MYSQL_ROOT_PASSWORD=$MYSQL_ROOT_PASSWORD
|
|
- MYSQL_LOG_CONSOLE=true
|
|
volumes:
|
|
- seafile-db:/var/lib/mysql # Requested, 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:latest
|
|
container_name: seafile
|
|
volumes:
|
|
- seafile-data:/shared # Requested, specifies the path to Seafile data persistent store.
|
|
- ./seafile.nginx.conf.template:/templates/seafile.nginx.conf.template
|
|
environment:
|
|
- DB_HOST=db
|
|
- DB_ROOT_PASSWD=$MYSQL_ROOT_PASSWORD
|
|
- TIME_ZONE=$TIME_ZONE
|
|
- SEAFILE_ADMIN_EMAIL=$SEAFILE_ADMIN_EMAIL
|
|
- SEAFILE_ADMIN_PASSWORD=$SEAFILE_ADMIN_PASSWORD
|
|
- SEAFILE_SERVER_LETSENCRYPT=false
|
|
- SEAFILE_SERVER_HOSTNAME=$APP_HOSTNAME
|
|
- VIRTUAL_HOST=$APP_HOSTNAME
|
|
- VIRTUAL_PORT=$APP_PORT
|
|
- LETSENCRYPT_HOST=$APP_HOSTNAME
|
|
depends_on:
|
|
- db
|
|
- memcached
|
|
networks:
|
|
- seafile-net
|
|
- proxy-net
|
|
|
|
networks:
|
|
seafile-net:
|
|
proxy-net:
|
|
external: true
|
|
name: $PROXYNET
|
|
|
|
volumes:
|
|
seafile-db:
|
|
seafile-data:
|