Go to file
Daniel Meiburg 4ad1c8e584
Fix: freshrss
2023-02-19 23:32:29 +01:00
authentik Implement enabled switch for post-receive. Disable portainer. 2023-02-15 22:01:57 +01:00
freshrss Fix: freshrss 2023-02-19 23:32:29 +01:00
gitea Add miniflux 2023-02-16 22:48:29 +01:00
grist Fix: .env.asc -> .env.gpg 2023-02-16 22:56:22 +01:00
nextcloud Implement enabled switch for post-receive. Disable portainer. 2023-02-15 22:01:57 +01:00
nginx-proxy Implement enabled switch for post-receive. Disable portainer. 2023-02-15 22:01:57 +01:00
portainer Implement enabled switch for post-receive. Disable portainer. 2023-02-15 22:01:57 +01:00
watchtower Implement enabled switch for post-receive. Disable portainer. 2023-02-15 22:01:57 +01:00
.gitignore Update README 2023-02-11 23:57:05 +01:00
README.md Update 'README.md' 2023-02-13 01:21:34 +01:00
post-receive Implement enabled switch for post-receive. Disable portainer. 2023-02-15 22:01:57 +01:00

README.md

Container

This project contains my personal docker compose configurations.

Operating principle:

Changes in this repo get pushed to a bare repo on dmeiburg.de. Whenever a push is received a post-receive hook runs.

The post-receive hook then:

  • deploys the code into a working directory
  • decrypts .env.gpg files
  • restarts stacks with changed compose files

The env files are encrypted for key@dmeiburg.de and server@dmeiburg.de.

Server setup

# create bare repo on dmeiburg.de
mkdir -p git/container.git
cd git/container.git
git init --bare
# install the post receive hook, by using this command on the local machine
# whenever the hook is edited, this command has to be used again
scp post-receive dmeiburg:~/git/container/hooks/

Local setup

# add bare repo as remote on local machine
git remote add dmeiburg ssh://root@dmeiburg.de:/root/git/container.git

Encrypting .env files

To encrypt an .env files, the following command is used:

$ gpg -er key@dmeiburg.de -r server@dmeiburg.de .env

Deployment

git push dmeiburg

If necessary the post-receive hook has to be updated via scp.