Personnal NixOS configuration for a docker swarm node
- Users
- GlusterFS
- Docker
- Auto-upgrades
- Create a CA certificate/key pair for your GlusterFS cluster, place the certificate as
./certs/glusterfs.ca
in each node. - Use the CA to create certficates for each node, and add them as
./certs/glusterfs.pem
and./certs/glusterfs.key
in the corresponding nodes. - Edit the
node-config.nix
files with your values. - Apply the nix configuration
- Setup the GlusterFS pools and volumes (see https://docs.gluster.org/en/latest/)
- Setup Docker Swarm