Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use compose #7

Open
sils opened this issue Mar 30, 2015 · 5 comments
Open

Use compose #7

sils opened this issue Mar 30, 2015 · 5 comments
Assignees

Comments

@sils
Copy link

sils commented Mar 30, 2015

I think it would be nice to use compose to create a net of docker images for an owncloud distribution:

  • One could probably manage data/functional containers more easily
  • Spawn up the owncloud even faster
  • Seperating the MySQL database into an own container (should be faster for OC)
@l3iggs l3iggs self-assigned this May 5, 2015
@l3iggs
Copy link
Contributor

l3iggs commented May 5, 2015

I don't know anything about compose. It sounds cool though.

@l3iggs l3iggs changed the title compose Use compose May 5, 2015
@l3iggs
Copy link
Contributor

l3iggs commented May 6, 2015

I'm not convinced that I should use compose here (although to be honest, I still don't really know what it is).

One could probably manage data/functional containers more easily

That sounds pretty good. I can't imagine it would be any easier than using volumes though.

Spawn up the owncloud even faster

It takes about 2.3 seconds to spawn the container on my system. Since this is a once per week type task, I'm not too interested in this benefit.

Seperating the MySQL database into an own container (should be faster for OC)

This can be done now. There's nothing in this image that hard codes the ownCloud server to use the MySQL server provided here, the user can point OC to whatever database they like during initial setup. I'm sure there are a plenty of MySQL server images one could pull from the Docker Registry that would work just fine here. I just decided to build a MySQL server in for convenience. Also, I'm not so sure that that OC and mariadb would impact each other any less if they were running in different containers, unless you're using settings that cap the container's resource usage.

@sils
Copy link
Author

sils commented May 6, 2015

docker compose would allow you to write a small definition that defines an organization of docker containers, i.e. one could have one owncloud container with the standard ports exposed readily linked to a mysql container and having a volume container for all data stuff. Thats just one command for the user to get the default configuration then which is nice IMO.

@tkock
Copy link

tkock commented Jul 30, 2015

Please see https://github.com/tkock/owncloud-docker-compose for my setup with docker-compose using your Dockerfile.
It keeps all files in the host filesystem via volume mounts.
I am currently running it with sqlite, the mysql config is from a first trial run and might not work perfectly.
Feel free to copy/modify/include... whatever.

@sils
Copy link
Author

sils commented Aug 15, 2015

Related: owncloud-archive/documentation#1516 and #41

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants