Deploy 9iron container to production
This commit is contained in:
parent
93d69ee303
commit
3d10288d6d
@ -61,9 +61,9 @@ apache_vhosts_ssl:
|
|||||||
certificate_chain_file: /etc/letsencrypt/live/desu.ltd/chain.pem
|
certificate_chain_file: /etc/letsencrypt/live/desu.ltd/chain.pem
|
||||||
- servername: www.9iron.club
|
- servername: www.9iron.club
|
||||||
extra_parameters: |
|
extra_parameters: |
|
||||||
<Directory /var/www/www.9iron.club/files>
|
ProxyPreserveHost On
|
||||||
Options Indexes FollowSymLinks
|
ProxyRequests Off
|
||||||
</Directory>
|
ProxyPass / http://127.0.0.1:8001/ nocanon retry=1
|
||||||
documentroot: /var/www/www.9iron.club
|
documentroot: /var/www/www.9iron.club
|
||||||
certificate_file: /etc/letsencrypt/live/desu.ltd/fullchain.pem
|
certificate_file: /etc/letsencrypt/live/desu.ltd/fullchain.pem
|
||||||
certificate_key_file: /etc/letsencrypt/live/desu.ltd/privkey.pem
|
certificate_key_file: /etc/letsencrypt/live/desu.ltd/privkey.pem
|
||||||
|
@ -3,10 +3,6 @@
|
|||||||
# Webservers
|
# Webservers
|
||||||
---
|
---
|
||||||
- hosts: web1.desu.ltd
|
- hosts: web1.desu.ltd
|
||||||
tasks:
|
|
||||||
- name: configure nextcloud cronjob
|
|
||||||
cron: user=www-data name=nextcloud minute=*/5 job="php -f /var/www/nc.desu.ltd/cron.php"
|
|
||||||
tags: [ nextcloud, cron ]
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- vars/apache.yml
|
- vars/apache.yml
|
||||||
- vars/php-fpm.yml
|
- vars/php-fpm.yml
|
||||||
@ -14,6 +10,22 @@
|
|||||||
- vars/desultd-certbot.yml
|
- vars/desultd-certbot.yml
|
||||||
- vars/desultd-gitea.yml
|
- vars/desultd-gitea.yml
|
||||||
- vars/desultd-nextcloud.yml
|
- vars/desultd-nextcloud.yml
|
||||||
|
tasks:
|
||||||
|
- name: configure nextcloud cronjob
|
||||||
|
cron: user=www-data name=nextcloud minute=*/5 job="php -f /var/www/nc.desu.ltd/cron.php"
|
||||||
|
tags: [ nextcloud, cron ]
|
||||||
|
- name: docker deploy 9iron
|
||||||
|
docker_container:
|
||||||
|
name: 9iron
|
||||||
|
state: started
|
||||||
|
image: rehashedsalt/9iron:latest
|
||||||
|
restart_policy: unless-stopped
|
||||||
|
pull: yes
|
||||||
|
ports:
|
||||||
|
- 8001:80
|
||||||
|
volumes:
|
||||||
|
- /data/9iron/files:/var/www/html/files
|
||||||
|
tags: [ docker, 9iron ]
|
||||||
roles:
|
roles:
|
||||||
- role: backup
|
- role: backup
|
||||||
vars:
|
vars:
|
||||||
@ -21,7 +33,6 @@
|
|||||||
- /data
|
- /data
|
||||||
- /var/lib/gitea
|
- /var/lib/gitea
|
||||||
- /var/www/nc.desu.ltd
|
- /var/www/nc.desu.ltd
|
||||||
- /var/www/www.9iron.club/files
|
|
||||||
- /srv/desu.ltd
|
- /srv/desu.ltd
|
||||||
backup_s3backup_exclude_list_extra:
|
backup_s3backup_exclude_list_extra:
|
||||||
- /var/lib/gitea/log
|
- /var/lib/gitea/log
|
||||||
@ -47,8 +58,6 @@
|
|||||||
git_repos:
|
git_repos:
|
||||||
- repo: https://git.desu.ltd/salt/desultd
|
- repo: https://git.desu.ltd/salt/desultd
|
||||||
dest: /var/www/desu.ltd
|
dest: /var/www/desu.ltd
|
||||||
- repo: https://git.desu.ltd/salt/9iron
|
|
||||||
dest: /var/www/www.9iron.club
|
|
||||||
- repo: https://git.9iron.club/KidiroInfiniti/OTW_Site
|
- repo: https://git.9iron.club/KidiroInfiniti/OTW_Site
|
||||||
dest: /var/www/www.otwstudios.org
|
dest: /var/www/www.otwstudios.org
|
||||||
- repo: https://git.desu.ltd/salt/gitea-custom
|
- repo: https://git.desu.ltd/salt/gitea-custom
|
||||||
|
Loading…
x
Reference in New Issue
Block a user