Created
October 23, 2018 20:37
-
-
Save jmooo/c3f211a48292dd1aeb176ec258e32837 to your computer and use it in GitHub Desktop.
Run Dropbox in a Docker container via systemd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Dropbox Service | |
After=docker.service network.target | |
[Service] | |
Type=simple | |
User=MY_USERNAME | |
ExecStartPre=-/usr/bin/docker rm dropbox | |
ExecStart=/usr/bin/docker run \ | |
--name=dropbox \ | |
-v /home/MY_USERNAME/Dropbox:/dbox/Dropbox \ | |
-v /home/MY_USERNAME/.dropbox:/dbox/.dropbox \ | |
-e DBOX_UID=MY_UID \ | |
-e DBOX_GID=MY_GID \ | |
janeczku/dropbox | |
Restart=always | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment