Skip to content

Instantly share code, notes, and snippets.

@ktwzk
Last active January 13, 2023 07:09
Show Gist options
  • Save ktwzk/c373b62e83026323bbe4cf7837bd8a64 to your computer and use it in GitHub Desktop.
Save ktwzk/c373b62e83026323bbe4cf7837bd8a64 to your computer and use it in GitHub Desktop.
Easy SeaFile Docker Compose for NetAngels Docker VDS
version: '2.0'
services:
db:
image: mariadb:10.5
container_name: seafile-mysql
environment:
- MYSQL_ROOT_PASSWORD=GENERATENEWPASSWORD # Requested, set the root's password of MySQL service.
- MYSQL_LOG_CONSOLE=true
volumes:
- /opt/seafile-mysql/db:/var/lib/mysql
networks:
- seafile-net
memcached:
image: memcached:1.6
container_name: seafile-memcached
entrypoint: memcached -m 256
networks:
- seafile-net
seafile:
image: seafileltd/seafile-mc:latest
container_name: seafile
ports:
- "80:80"
- "443:443"
volumes:
- /opt/seafile-data:/shared # Requested, specifies the path to Seafile data persistent store.
environment:
- DB_HOST=db
- DB_ROOT_PASSWD=GENERATENEWPASSWORD # Requested, the value shuold be root's password of MySQL service.
- TIME_ZONE=Etc/UTC # Optional, default is UTC. Should be uncomment and set to your local time zone.
- SEAFILE_ADMIN_EMAIL=vcru@vc.ru # Specifies Seafile admin user, default is 'me@example.com'.
- SEAFILE_ADMIN_PASSWORD=netangels # Specifies Seafile admin password, default is 'asecret'.
- SEAFILE_SERVER_LETSENCRYPT=true # Whether to use https or not.
- SEAFILE_SERVER_HOSTNAME=files.pointdevils.ru # Specifies your host name if https is enabled.
depends_on:
- db
- memcached
networks:
- seafile-net
networks:
seafile-net:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment