Commit 97ea2283 authored by Nick Busey's avatar Nick Busey

#73 Make tor optional

parent 19851b37
Pipeline #38989328 passed with stages
in 40 seconds
......@@ -21,8 +21,16 @@
roles:
# Install Docker, configure basic server settings
- homelabos_common
# Configure a TOR hidden service for remote access without a public IP
# Configure a TOR hidden service for remote access without a public IP
- name: "Setup TOR"
tags: tinc
hosts: all
become: yes
become_method: sudo
roles:
- role: tor
when: enable_tor
hidden_services:
- dir: /var/lib/tor/ssh-onion
port: 22
......@@ -42,8 +50,7 @@
become_method: sudo
roles:
- role: homelabos_tinc
when:
- enable_tinc
when: enable_tinc
- name: "Update Tinc NGINX Servers"
hosts: tinc
......
  _   _                              _           _        ___    ____  
 | | | |   ___    _ __ ___     ___  | |   __ _  | |__    / _ \  / ___| 
 | |_| |  / _ \  | '_ ` _ \   / _ \ | |  / _` | | '_ \  | | | | \___ \ 
 |  _  | | (_) | | | | | | | |  __/ | | | (_| | | |_) | | |_| |  ___) |
 |_| |_|  \___/  |_| |_| |_|  \___| |_|  \__,_| |_.__/   \___/  |____/ 
 created by Nick Busey 
......@@ -9,6 +9,8 @@ networks:
services:
bulletnotes_db:
image: mongo:3.2.21
networks:
- traefik_network
restart: unless-stopped
command: mongod --smallfiles --oplogSize 128
expose:
......@@ -19,13 +21,13 @@ services:
bulletnotes:
image: nickbusey/bulletnotes
networks:
- traefik_network
command: meteor --allow-superuser run
working_dir: /BulletNotes
links:
- bulletnotes_db
restart: unless-stopped
networks:
- traefik_network
environment:
- MONGO_URL=mongodb://bulletnotes_db:27017/bulletnotes
- ROOT_URL=http://bulletnotes.{{ domain }}
......
......@@ -39,6 +39,8 @@ services:
nextcloud_db:
image: mariadb
networks:
- traefik_network
restart: unless-stopped
volumes:
- /var/homelabos/nextcloud_db:/var/lib/mysql
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment