Move website to be hosted on GitLab pages

This commit is contained in:
Jake Howard 2020-10-09 21:35:57 +01:00
parent 7f09db5d20
commit f7afaacbdc
Signed by: jake
GPG key ID: 57AFB45680EDD477
5 changed files with 4 additions and 31 deletions

View file

@ -50,7 +50,6 @@
roles:
- contessa
- upload
- website
- duplicati
- gitlab_pages
- deluge

View file

@ -35,6 +35,10 @@ services:
- traefik.http.routers.gitlab-pages-notes.tls.certresolver=le
- traefik.http.routers.gitlab-pages-notes.service=gitlab-pages-gitlab-pages
- traefik.http.routers.gitlab-pages-website.rule=Host(`theorangeone.net`) || Host(`www.theorangeone.net`)
- traefik.http.routers.gitlab-pages-website.tls.certresolver=le
- traefik.http.routers.gitlab-pages-website.service=gitlab-pages-gitlab-pages
ssh-server:
image: linuxserver/openssh-server:latest
environment:

View file

@ -1,9 +0,0 @@
version: "2.3"
services:
website:
image: docker.pkg.github.com/realorangeone/theorangeone.net/theorangeone.net:latest
restart: unless-stopped
labels:
- traefik.enable=true
- traefik.http.routers.website.rule=Host(`theorangeone.net`) || Host(`www.theorangeone.net`)
- traefik.http.routers.website.tls.certresolver=le

View file

@ -1,4 +0,0 @@
- name: restart website
shell:
chdir: /opt/theorangeone.net
cmd: "{{ docker_update_command }}"

View file

@ -1,17 +0,0 @@
- name: Create install directory
file:
path: /opt/theorangeone.net
state: directory
owner: "{{ docker_user.name }}"
mode: "{{ docker_compose_directory_mask }}"
become: true
- name: Install compose file
template:
src: files/docker-compose.yml
dest: /opt/theorangeone.net/docker-compose.yml
mode: "{{ docker_compose_file_mask }}"
owner: "{{ docker_user.name }}"
validate: /usr/bin/docker-compose -f %s config
notify: restart website
become: true