- 3,791
- 1,297
- NAS
- DS4l8play, DS202j, DS3623xs+, DSM 7.3.3-25847
Last edited:
I wanted to get Seafile running on Docker. There's a docker-compose template available here.
With only a path change, and a few minor strikeouts, I came up with this unoriginal docker-compose...
After starting (via Portainer Stacks), I get 502 Bad Gateway... Following this video...
I noticed that the URL for my three containers is 192.168.14.x... compared to the video (and my other containers) which follow a 172.17.0.x IP.
I'm puzzled. This should be dirt simple. Or do any of the docker-compose elements fall outside the Synology "docker-compose" capabilities?
Thanks!
UPDATE 1:
Holy Moley... I just clicked again and it ran? Wow. Maybe I didn't wait long enough.
I till don't understand why the container IP range changed as it did, but all seems fine now. If this works out, I'll pull together a write-up.
FWIW, I began to look for alternatives to NextCloud, because, frankly for my needs, it is a bit bloated. I'd rather use the "best of the best" packages for my day-to-day needs. Hopefully Seafile answers my alternative "Dropbox" objective.
With only a path change, and a few minor strikeouts, I came up with this unoriginal docker-compose...
Code:
version: '2.0'
services:
db:
image: mariadb:10.5
container_name: seafile-mysql
environment:
- MYSQL_ROOT_PASSWORD=db_dev # Requested, set the root's password of MySQL service.
- MYSQL_LOG_CONSOLE=true
volumes:
- /volume1/docker/seafile/mysql:/var/lib/mysql # Requested, specifies the path to MySQL data persistent store.
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:
- "8821:80"
# - "443:443" # If https is enabled, cancel the comment.
volumes:
- /volume1/docker/seafile/data:/shared # Requested, specifies the path to Seafile data persistent store.
environment:
- DB_HOST=db
- DB_ROOT_PASSWD=db_dev # 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.
# - [email protected] # Specifies Seafile admin user, default is '[email protected]'.
# - SEAFILE_ADMIN_PASSWORD=asecret # Specifies Seafile admin password, default is 'asecret'.
# - SEAFILE_SERVER_LETSENCRYPT=false # Whether to use https or not.
# - SEAFILE_SERVER_HOSTNAME=docs.seafile.com # Specifies your host name if https is enabled.
depends_on:
- db
- memcached
networks:
- seafile-net
networks:
seafile-net:
I noticed that the URL for my three containers is 192.168.14.x... compared to the video (and my other containers) which follow a 172.17.0.x IP.
I'm puzzled. This should be dirt simple. Or do any of the docker-compose elements fall outside the Synology "docker-compose" capabilities?
Thanks!
UPDATE 1:
Holy Moley... I just clicked again and it ran? Wow. Maybe I didn't wait long enough.
I till don't understand why the container IP range changed as it did, but all seems fine now. If this works out, I'll pull together a write-up.
FWIW, I began to look for alternatives to NextCloud, because, frankly for my needs, it is a bit bloated. I'd rather use the "best of the best" packages for my day-to-day needs. Hopefully Seafile answers my alternative "Dropbox" objective.