Skip to content

Latest commit

 

History

History
35 lines (27 loc) · 964 Bytes

SETUP.md

File metadata and controls

35 lines (27 loc) · 964 Bytes

Setting this up on your own server

Right now, a lot of paths are hard coded, so you will need to work with that or submit a pull request to fix it.

Requirements

  • docker
  • docker-compose
  • systemd
  • a recent kernel (3.19 or later will work)

Create user

This one doesn’t matter. I use acm

Create directories

  • /srv/acm/
  • /srv/volume/

Copy [email protected] to /etc/systemd/system/

Setting up a service

Write a docker-compose yml file

  • The name of the main container must be the same as the name of the yml file without the .yml
  • You should use env files over env vars, stored in a folder with the name of the service
  • You must have a file called MAC in the service_name file that contains the mac address for the service’s interface
  • Volumes should go in /srv/volume/<service_name>/

Starting a service

systemctl start acm@<service_name>

Starting it at boot

systemctl enable acm@<service_name>