Compare commits
7 Commits
5753bf2765
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
800e0d0ef1 | ||
|
|
b1160b8cf1 | ||
|
|
9c4d03f758 | ||
|
|
cd35b14d50 | ||
|
|
595eb146e1 | ||
|
|
92d4ccfb5c | ||
|
|
ec5f006b3d |
@@ -68,8 +68,6 @@ all:
|
||||
ansible_host: 192.168.0.60
|
||||
gitea:
|
||||
ansible_host: 192.168.0.63
|
||||
openbao:
|
||||
ansible_host: 192.168.0.64
|
||||
grail:
|
||||
ansible_host: 192.168.0.65
|
||||
tor:
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
# DOMAIN_NAME and SUBDOMAIN together determine where n8n will be reachable from
|
||||
# The top level domain to serve from
|
||||
DOMAIN_NAME=168.0.69
|
||||
|
||||
# The subdomain to serve from
|
||||
SUBDOMAIN=192
|
||||
|
||||
# The above example serve n8n at: https://n8n.example.com
|
||||
|
||||
# Optional timezone to set which gets used by Cron and other scheduling nodes
|
||||
# New York is the default value if not set
|
||||
GENERIC_TIMEZONE=America/Chicago
|
||||
|
||||
# The email address to use for the TLS/SSL certificate creation
|
||||
SSL_EMAIL=n8n@noemail.com
|
||||
|
||||
DB_SQLITE_POOL_SIZE=10
|
||||
|
||||
|
||||
OLLAMA_HOST=http://ollama:11434
|
||||
N8N_BASIC_AUTH_ACTIVE=true
|
||||
N8N_BASIC_AUTH_USER=admin
|
||||
N8N_BASIC_AUTH_PASSWORD=secretpassword
|
||||
|
||||
@@ -1,61 +0,0 @@
|
||||
# yaml-language-server: $schema=https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json
|
||||
services:
|
||||
traefik:
|
||||
image: traefik
|
||||
container_name: traefik
|
||||
restart: always
|
||||
environment:
|
||||
- SSL_EMAIL=n8n@noemail.com
|
||||
- DOMAIN_NAME=168.0.69
|
||||
- SUBDOMAIN=192
|
||||
- GENERIC_TIMEZONE=America/Chicago
|
||||
command:
|
||||
- "--api.insecure=true"
|
||||
- "--providers.docker=true"
|
||||
- "--providers.docker.exposedbydefault=false"
|
||||
- "--entrypoints.web.address=:80"
|
||||
- "--entrypoints.web-secure.address=:443"
|
||||
- "--entrypoints.web-secure.http.tls.certresolver=mytlschallenge"
|
||||
- "--certificatesresolvers.mytlschallenge.acme.email=${SSL_EMAIL}"
|
||||
- "--certificatesresolvers.mytlschallenge.acme.storage=/acme.json"
|
||||
- "--certificatesresolvers.mytlschallenge.acme.httpchallenge.entrypoint=web-secure"
|
||||
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||
- traefik_data:/acme.json
|
||||
|
||||
n8n:
|
||||
image: n8nio/n8n:latest
|
||||
container_name: n8n
|
||||
restart: always
|
||||
depends_on:
|
||||
- ollama
|
||||
- traefik
|
||||
environment:
|
||||
- SSL_EMAIL=n8n@noemail.com
|
||||
- DOMAIN_NAME=168.0.69
|
||||
- SUBDOMAIN=192
|
||||
- GENERIC_TIMEZONE=America/Chicago
|
||||
- N8N_BASIC_AUTH_ACTIVE=true
|
||||
- N8N_BASIC_AUTH_USER=admin
|
||||
- N8N_BASIC_AUTH_PASSWORD=secretpassword
|
||||
- OLLAMA_HOST=http://ollama:11434
|
||||
- N8N_SQLITE_POOL_SIZE=10
|
||||
- N8N_HOST=https://${SUBDOMAIN}.${DOMAIN_NAME}
|
||||
volumes:
|
||||
- ./n8n_data:/home/node/.n8n
|
||||
- ../data/:/files
|
||||
|
||||
ollama:
|
||||
image: ollama/ollama
|
||||
container_name: ollama
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- OLLAMA_HOST=0.0.0.0
|
||||
volumes:
|
||||
- ollama_data:/root/.ollama
|
||||
|
||||
volumes:
|
||||
traefik_data:
|
||||
ollama_data:
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
# Unused
|
||||
@@ -1,14 +0,0 @@
|
||||
# yaml-language-server: $schema=https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json
|
||||
services:
|
||||
server:
|
||||
image: quay.io/openbao/openbao:latest
|
||||
container_name: openbao
|
||||
restart: always
|
||||
volumes:
|
||||
- ./config/openbao.hcl:/bao/config/openbao.hcl
|
||||
- ../data:/openbao/file
|
||||
cap_add:
|
||||
- IPC_LOCK
|
||||
ports:
|
||||
- "8200:8200"
|
||||
entrypoint: ["bao", "server", "-config=/bao/config/openbao.hcl"]
|
||||
@@ -56,7 +56,7 @@
|
||||
- name: Hold containerd.io package
|
||||
ansible.builtin.dpkg_selections:
|
||||
name: containerd.io
|
||||
selection: hold
|
||||
selection: install
|
||||
|
||||
- name: Create docker user
|
||||
user:
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
- name: Setup-LXC containers
|
||||
hosts: lxc
|
||||
connection: "{{ ansible_connection_type | default('local') }}"
|
||||
become: true
|
||||
gather_facts: true
|
||||
become: true
|
||||
vars_files:
|
||||
- ./vault.yaml
|
||||
|
||||
@@ -47,11 +47,12 @@
|
||||
--vault-password-file /root/vault.pass
|
||||
-e confirm_restore=true
|
||||
delegate_to: localhost
|
||||
become: false
|
||||
when: not apps_docker_dir.stat.exists or not apps_data_dir.stat.exists
|
||||
|
||||
- name: Copy docker-compose.yml from repo
|
||||
ansible.builtin.copy:
|
||||
src: ./{{ ansible_hostname }}/docker-compose.yml
|
||||
src: ./{{ ansible_facts["hostname"] }}/docker-compose.yml
|
||||
dest: /apps/docker/docker-compose.yml
|
||||
owner: docker
|
||||
group: docker
|
||||
@@ -59,7 +60,7 @@
|
||||
|
||||
- name: Copy docker-compose.env from repo
|
||||
ansible.builtin.copy:
|
||||
src: ./{{ ansible_hostname }}/.env
|
||||
src: ./{{ ansible_facts['hostname'] }}/.env
|
||||
dest: /apps/docker/.env
|
||||
owner: docker
|
||||
group: docker
|
||||
|
||||
Reference in New Issue
Block a user