From 8b143f6be05ace8d7d5f2d15560a64d46fb1fbb1 Mon Sep 17 00:00:00 2001 From: shockrah Date: Sat, 3 Aug 2024 15:25:06 -0700 Subject: [PATCH] Simple docker compose and setting up git.shocrah.xyz domain --- infra/dns/shockrah-xyz.tf | 1 + infra/static-vultr/ansible/playbooks/refresh-nginx.yml | 1 + .../static-vultr/ansible/playbooks/run-docker-compose.yaml | 7 +++++++ 3 files changed, 9 insertions(+) create mode 100644 infra/static-vultr/ansible/playbooks/run-docker-compose.yaml diff --git a/infra/dns/shockrah-xyz.tf b/infra/dns/shockrah-xyz.tf index e785437..7e9c03b 100644 --- a/infra/dns/shockrah-xyz.tf +++ b/infra/dns/shockrah-xyz.tf @@ -37,6 +37,7 @@ locals { { name = "www.shockrah.xyz", records = [ var.vultr_host ] }, { name = "resume.shockrah.xyz", records = [ var.vultr_host ] }, { name = "immich.shockrah.xyz", records = [ "45.32.92.196" ] }, + { name = "git.shockrah.xyz", records = [ var.vultr_host ] }, ] } diff --git a/infra/static-vultr/ansible/playbooks/refresh-nginx.yml b/infra/static-vultr/ansible/playbooks/refresh-nginx.yml index 77a701a..49621ea 100644 --- a/infra/static-vultr/ansible/playbooks/refresh-nginx.yml +++ b/infra/static-vultr/ansible/playbooks/refresh-nginx.yml @@ -4,6 +4,7 @@ vars: websites: - shockrah.xyz + - git.shockrah.xyz - temper.tv - resume.shockrah.xyz tasks: diff --git a/infra/static-vultr/ansible/playbooks/run-docker-compose.yaml b/infra/static-vultr/ansible/playbooks/run-docker-compose.yaml new file mode 100644 index 0000000..5da05b7 --- /dev/null +++ b/infra/static-vultr/ansible/playbooks/run-docker-compose.yaml @@ -0,0 +1,7 @@ +--- +- hosts: webhost + remote_user: webadmin + tasks: + - name: Run docker-compose up + community.docker.docker_compose_v2: + project_src: ../../../containers/