Updating README to reflect recent move. - infra - Terraform IoC for my remote (Hetzner) and local (Incus) servers.
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
(DIR) commit 5cf16ff07647c99d88cbd5f8544ddea2f1a2977f
(DIR) parent 52a47a308ef436aed7aec93d32bdf2e2d7aaa320
(HTM) Author: Jay Scott <me@jay.scot>
Date: Thu, 24 Aug 2023 11:35:20 +0100
Updating README to reflect recent move.
Diffstat:
M README | 21 ++++++++++-----------
1 file changed, 10 insertions(+), 11 deletions(-)
---
(DIR) diff --git a/README b/README
@@ -7,7 +7,7 @@ Bootstrap Hetzner Cloud servers.
Provision X servers with desired configuration
Create custom firewall rules
Add reverse dns entry
- Userdata bootscript adding an Ansible user account
+ Userdata bootscript add a user and docker.
If you actually want to use this for yourself then you might need to do
the following depending on your requirements.
@@ -17,26 +17,25 @@ the following depending on your requirements.
The user_data script is a standard cloud-init yaml config that creates
-an Ansible user for further configuration the instances.
+an user for deploying docker containers.
terraform plan
terraform apply
-|> Ansible
+|> Containers
-Playbook to install the following:
+Docker containers for the following services I run:
gopher
- git and git daemon
- stagit-gopher
- efingerd
+ fingered
-Apply all:
- ansible-playbook -i inventory.yml main.yml
+Create a remote context, one time thing:
-Run tags
+ docker context create remote --docker "host=ssh://jay@jay.scot"
- ansible-playbook -i inventory.yml main.yml --tags <git/gopher/common>
+Build and run the containers:
+
+ docker-compose --context remote up --build -d