Move website to be hosted on GitLab pages
This commit is contained in:
parent
7f09db5d20
commit
f7afaacbdc
5 changed files with 4 additions and 31 deletions
|
@ -50,7 +50,6 @@
|
||||||
roles:
|
roles:
|
||||||
- contessa
|
- contessa
|
||||||
- upload
|
- upload
|
||||||
- website
|
|
||||||
- duplicati
|
- duplicati
|
||||||
- gitlab_pages
|
- gitlab_pages
|
||||||
- deluge
|
- deluge
|
||||||
|
|
|
@ -35,6 +35,10 @@ services:
|
||||||
- traefik.http.routers.gitlab-pages-notes.tls.certresolver=le
|
- 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-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:
|
ssh-server:
|
||||||
image: linuxserver/openssh-server:latest
|
image: linuxserver/openssh-server:latest
|
||||||
environment:
|
environment:
|
||||||
|
|
|
@ -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
|
|
|
@ -1,4 +0,0 @@
|
||||||
- name: restart website
|
|
||||||
shell:
|
|
||||||
chdir: /opt/theorangeone.net
|
|
||||||
cmd: "{{ docker_update_command }}"
|
|
|
@ -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
|
|
Loading…
Reference in a new issue