2
0

initial commit (untested)

This commit is contained in:
2023-05-23 22:24:36 +02:00
commit 24203d375f
6 changed files with 270 additions and 0 deletions

53
docker-compose.yml Normal file
View File

@@ -0,0 +1,53 @@
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: