added codeserver to stack
This commit is contained in:
parent
f93a21dc3a
commit
d6505d896c
2
dns.yml
2
dns.yml
@ -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"
|
||||
|
@ -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
|
||||
}
|
||||
|
19
roles/docker/tasks/codeserver.yml
Normal file
19
roles/docker/tasks/codeserver.yml
Normal 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
|
@ -124,4 +124,8 @@
|
||||
|
||||
- name: Install heyform
|
||||
import_tasks: heyform.yml
|
||||
tags: heyform
|
||||
tags: heyform
|
||||
|
||||
- name: Install codeserver
|
||||
import_tasks: codeserver.yml
|
||||
tags: codeserver
|
17
roles/docker/templates/codeserver-compose.yml.j2
Normal file
17
roles/docker/templates/codeserver-compose.yml.j2
Normal 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
|
Loading…
Reference in New Issue
Block a user