Skip to content

Instantly share code, notes, and snippets.

@Kambaa
Created December 26, 2022 13:53
Show Gist options
  • Save Kambaa/4e4fc5fec95d7816d5e85b53540ca47e to your computer and use it in GitHub Desktop.
Save Kambaa/4e4fc5fec95d7816d5e85b53540ca47e to your computer and use it in GitHub Desktop.
MY Seafile Docker Compose Installation
services:
nginx:
image: nginx
container_name: nginx
restart: always
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- ./ssl:/etc/ssl
ports:
- "80:80"
- "443:443"
depends_on:
- seafile
deploy:
resources:
reservations:
cpus: '0.15'
memory: '10M'
limits:
cpus: '0.50'
memory: '75M'
mysql:
image: mysql
container_name: mysqldb
command: --default-authentication-plugin=mysql_native_password
restart: always
volumes:
- ./mysql_data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: <CHANGEME>
MYSQL_USER: <CHANGEME>
MYSQL_PASSWORD : <CHANGEME>
ports:
- 3306:3306
# - 3306:3306 # public
# - 3306 # private - only docker containers
# SEAFILE SETUP
memcached:
image: memcached:1.6
container_name: seafile-memcached
entrypoint: memcached -m 256
seafile:
image: docker.seadrive.org/seafileltd/seafile-pro-mc:latest # register and go to https://customer.seafile.com/downloads/ and pull pro version, You don't need a license file to run the pro edition for 3 users. if not use "seafileltd/seafile-mc:latest" details on https://manual.seafile.com/docker/deploy_seafile_with_docker/
container_name: seafile
ports:
- "8000:80"
- "8082:8082"
volumes:
- ./seafile-data:/shared
environment:
- DB_HOST=mysql
- DB_ROOT_PASSWD=<CHANGEME> # Requested, the value should be root's password of MySQL service.
- TIME_ZONE=Europe/Istanbul # change according to your zone info
- [email protected]
- SEAFILE_ADMIN_PASSWORD=<CHANGEME>
- SEAFILE_SERVER_LETSENCRYPT=false
- SEAFILE_SERVER_HOSTNAME=cloud.changeme.com # enter your subdomain, domain or ip
depends_on:
- mysql
- memcached
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment