added codeserver to stack

This commit is contained in:
Phil 2024-12-03 17:56:24 -07:00
parent f93a21dc3a
commit d6505d896c
5 changed files with 47 additions and 1 deletions

View File

@ -25,6 +25,8 @@
ip: "152.53.36.98"
- name: "paper"
ip: "152.53.36.98"
- name: "code"
ip: "152.53.36.98"
- name: nerder.land
dns_records:
- name: "forms"

View File

@ -26,6 +26,10 @@ tasks.thesatelliteoflove.com {
reverse_proxy authentik-server-1:9000
}
code.thesatelliteoflove.com {
reverse_proxy authentik-server-1:9000
}
files.thesatelliteoflove.com {
reverse_proxy pingvin-pingvin-share-1:3000
}

View File

@ -0,0 +1,19 @@
- name: make codeserver directories
ansible.builtin.file:
path: "{{ item}}"
state: directory
loop:
- /opt/stacks/codeserver
- name: Template out the compose file
ansible.builtin.template:
src: codeserver-compose.yml.j2
dest: /opt/stacks/codeserver/compose.yml
owner: root
mode: 644
- name: deploy codeserver stack
community.docker.docker_compose_v2:
project_src: /opt/stacks/codeserver
files:
- compose.yml

View File

@ -124,4 +124,8 @@
- name: Install heyform
import_tasks: heyform.yml
tags: heyform
tags: heyform
- name: Install codeserver
import_tasks: codeserver.yml
tags: codeserver

View File

@ -0,0 +1,17 @@
services:
codeserver:
stdin_open: true
tty: true
container_name: codeserver
volumes:
- home:/home
environment:
- DOCKER_USER=$USER
image: codercom/code-server:latest
volumes:
home:
driver: local
networks:
default:
external: true
name: lava