Skip to content

Commit c58e205

Browse files
committed
write uccexpress play
1 parent 14664ae commit c58e205

File tree

1 file changed

+56
-1
lines changed

1 file changed

+56
-1
lines changed

provision-infra-web.yml

Lines changed: 56 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1490,7 +1490,7 @@
14901490
- provision
14911491
- shortener
14921492

1493-
- name: 'Student Media'
1493+
- name: 'Student Media - Motley'
14941494
hosts: web.infra.netsoc.co
14951495
become: yes
14961496
tasks:
@@ -1542,8 +1542,63 @@
15421542
- 'vars/secrets.yml'
15431543
tags:
15441544
- provision
1545+
- student_media
15451546
- motley
15461547

1548+
- name: 'Student Media - UCCExpress'
1549+
hosts: web.infra.netsoc.co
1550+
become: yes
1551+
tasks:
1552+
- name: 'Student Media - Remember UCCExpress definition'
1553+
set_fact:
1554+
uccexpress_definition:
1555+
version: '3.5':
1556+
services:
1557+
uccexpressdb:
1558+
image: mariadb:10.4.8
1559+
volumes:
1560+
- /netsoc/student-media/uccexpress/database:/var/lib/mysql
1561+
restart: always
1562+
networks:
1563+
uccexpress:
1564+
uccexpresswp:
1565+
depends_on:
1566+
- uccexpressdb
1567+
networks:
1568+
traefik:
1569+
image: wordpress:php7.4
1570+
restart: always
1571+
volumes:
1572+
- /netsoc/student-media/uccexpress/wordpress:/var/www/html
1573+
labels:
1574+
traefik.enable: "true"
1575+
traefik.http.routers.uccexpress.rule: "Host(`www.uccexpress.ie`, `uccexpress.ie`)"
1576+
traefik.http.routers.uccexpress.entrypoints: "web-secure"
1577+
traefik.http.routers.uccexpress.tls.certResolver: "letsencrypt-tls"
1578+
traefik.http.services.uccexpress-service.loadbalancer.server.port: "80"
1579+
traefik.http.routers.uccexpress.service: "uccexpress-service"
1580+
traefik.docker.network: "traefik"
1581+
- name: 'UCCExpress - Setup compose'
1582+
docker_compose:
1583+
project_name: uccexpress
1584+
pull: yes
1585+
recreate: smart
1586+
restarted: yes
1587+
remove_orphans: yes
1588+
state: present
1589+
definition: '{{ uccexpress_definition }}'
1590+
vars_files:
1591+
- 'vars/network.yml'
1592+
- 'vars/secrets_mapping.yml'
1593+
- 'vars/secrets.yml'
1594+
tags:
1595+
- provision
1596+
- student_media
1597+
- uccexpress
1598+
1599+
1600+
1601+
15471602

15481603
- name: 'LOKI TARGETS' # Keep this at the bottom of the file at all times.
15491604
hosts: web.infra.netsoc.co

0 commit comments

Comments
 (0)