Browse Source

Added deployment files for Reverse Proxy and WeKan

master
Jonas Oberg 2 years ago
parent
commit
710dc7c1a5
4 changed files with 81 additions and 3 deletions
  1. 1
    0
      rp.deploy.retry
  2. 42
    3
      rp.deploy.yml
  3. 1
    0
      wekan.deploy.retry
  4. 37
    0
      wekan.deploy.yml

+ 1
- 0
rp.deploy.retry View File

@@ -0,0 +1 @@
lund.fsfeurope.org

+ 42
- 3
rp.deploy.yml View File

@@ -3,9 +3,26 @@
remote_user: root

tasks:
- name: build the image
- name: build a proxy for the tools server
command: docker build -t proxy-tools --build-arg DESTINATION_HOST=holte.fsfeurope.org https://git.fsfe.org/jonas/fsfe-proxy.git

- name: build the rp image
command: docker build -t rp https://git.fsfe.org/jonas/fsfe-rp.git

- name: build the rple image
command: docker build -t rple https://github.com/JrCs/docker-letsencrypt-nginx-proxy-companion.git

- name: run the tools proxy
docker_container:
name: proxy-tools
image: proxy-tools
state: started
restart: yes
env:
VIRTUAL_HOST: tools.fsfe.org
LETSENCRYPT_HOST: tools.fsfe.org
LETSENCRYPT_EMAIL: jonas@fsfe.org

- name: run the reverse proxy
docker_container:
name: rp
@@ -13,7 +30,29 @@
state: started
restart: yes
ports:
- "81:80"
- "444:443"
- "80:80"
- "443:443"
env:
ENABLE_IPV6: true
volumes:
- "/var/run/docker.sock:/tmp/docker.sock:ro"
- "/srv/nginx-rp/certs:/etc/nginx/certs:ro"
- "/srv/nginx-rp/vhost:/etc/nginx/vhost.d"
- "/srv/nginx-rp/html:/usr/share/nginx/html"
labels:
"com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy": "true"

- name: run the letsencrypt companion
docker_container:
name: rple
image: rple
state: started
restart: yes
volumes_from:
- rp
volumes:
- "/srv/nginx-rp/vhost:/etc/nginx/vhost.d"
- "/srv/nginx-rp/certs:/etc/nginx/certs:rw"
- "/srv/nginx-rp/html:/usr/share/nginx/html"
- "/var/run/docker.sock:/var/run/docker.sock:ro"


+ 1
- 0
wekan.deploy.retry View File

@@ -0,0 +1 @@
lund.fsfeurope.org

+ 37
- 0
wekan.deploy.yml View File

@@ -0,0 +1,37 @@
---
- hosts: lund.fsfeurope.org
remote_user: root

tasks:
#- name: build the mongodb container
# command: docker build -t wekandb mongo:3.2.12

#- name: build the wekan image
# command: docker build -t wekan wekanteam/wekan:meteor-1.4

- name: run mongodb
docker_container:
name: wekandb
image: mongo
state: started
restart: yes
volumes:
- "/srv/wekan:/data/db:rw"

- name: run wekan
docker_container:
name: wekan
image: wekanteam/wekan:meteor-1.4
state: started
restart: yes
links:
- wekandb
env:
VIRTUAL_HOST: kan.fsfe.org
LETSENCRYPT_HOST: kan.fsfe.org
LETSENCRYPT_EMAIL: jonas@fsfe.org
MONGO_URL: mongodb://wekandb/wekan
ROOT_URL: https://kan.fsfe.org
MAIL_URL: smtp://mail.fsfe.org:25/
MAIL_FROM: admin@fsfe.org


Loading…
Cancel
Save