Compare commits
No commits in common. "5f0acaeadd05d04a62cb859b51f04de5a68b689f" and "da90d463dee0a914b834b61027c30b89f776ca4d" have entirely different histories.
5f0acaeadd
...
da90d463de
|
@ -75,6 +75,7 @@ jobs:
|
||||||
SMTP_PASSWORD: ${{ secrets.SMTP_PASSWORD }}
|
SMTP_PASSWORD: ${{ secrets.SMTP_PASSWORD }}
|
||||||
INFISICAL_ENCRYPTION_KEY: ${{ secrets.INFISICAL_ENCRYPTION_KEY }}
|
INFISICAL_ENCRYPTION_KEY: ${{ secrets.INFISICAL_ENCRYPTION_KEY }}
|
||||||
INFISICAL_AUTH_SECRET: ${{ secrets.INFISICAL_AUTH_SECRET }}
|
INFISICAL_AUTH_SECRET: ${{ secrets.INFISICAL_AUTH_SECRET }}
|
||||||
|
INFISICAL_MONGO_PASSWORD: ${{ secrets.INFISICAL_MONGO_PASSWORD }}
|
||||||
INFISICAL_TOKEN: ${{ secrets.INFISICAL_TOKEN }}
|
INFISICAL_TOKEN: ${{ secrets.INFISICAL_TOKEN }}
|
||||||
INFISICAL_URL: https://secrets.koval.net
|
INFISICAL_URL: https://secrets.koval.net
|
||||||
run: ansible-playbook --inventory ./inventory ${{ steps.playbooks.outputs.to_run }} -vv
|
run: ansible-playbook --inventory ./inventory ${{ steps.playbooks.outputs.to_run }} -vv
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
api_token_secret: "{{ lookup('ansible.builtin.env', 'PROXMOX_TOKEN_SECRET') }}"
|
api_token_secret: "{{ lookup('ansible.builtin.env', 'PROXMOX_TOKEN_SECRET') }}"
|
||||||
ssh_public: "{{ lookup('ansible.builtin.env', 'SSH_PUBLIC') }}"
|
ssh_public: "{{ lookup('ansible.builtin.env', 'SSH_PUBLIC') }}"
|
||||||
vmname: "{{ inventory_hostname | regex_replace('^([^\\.]+)\\..+$', '\\1') }}"
|
vmname: "{{ inventory_hostname | regex_replace('^([^\\.]+)\\..+$', '\\1') }}"
|
||||||
node: pve2
|
node: pve
|
||||||
module_defaults:
|
module_defaults:
|
||||||
community.general.proxmox_kvm:
|
community.general.proxmox_kvm:
|
||||||
api_user: "{{ api_user }}"
|
api_user: "{{ api_user }}"
|
||||||
|
|
|
@ -32,6 +32,11 @@
|
||||||
path: "{{ user.home }}/{{ app }}/.env"
|
path: "{{ user.home }}/{{ app }}/.env"
|
||||||
regexp: "AUTH_SECRET_VALUE"
|
regexp: "AUTH_SECRET_VALUE"
|
||||||
replace: "{{ lookup('ansible.builtin.env', 'INFISICAL_AUTH_SECRET') }}"
|
replace: "{{ lookup('ansible.builtin.env', 'INFISICAL_AUTH_SECRET') }}"
|
||||||
|
- name: Replace Mongo Password secret
|
||||||
|
ansible.builtin.replace:
|
||||||
|
path: "{{ user.home }}/{{ app }}/.env"
|
||||||
|
regexp: "MONGO_PASSWORD_VALUE"
|
||||||
|
replace: "{{ lookup('ansible.builtin.env', 'INFISICAL_MONGO_PASSWORD') }}"
|
||||||
- name: Replace SMTP Password secret
|
- name: Replace SMTP Password secret
|
||||||
ansible.builtin.replace:
|
ansible.builtin.replace:
|
||||||
path: "{{ user.home }}/{{ app }}/.env"
|
path: "{{ user.home }}/{{ app }}/.env"
|
||||||
|
|
|
@ -8,17 +8,19 @@ ENCRYPTION_KEY=ENCRYPTION_KEY_VALUE
|
||||||
# THIS IS A SAMPLE AUTH_SECRET KEY AND SHOULD NEVER BE USED FOR PRODUCTION
|
# THIS IS A SAMPLE AUTH_SECRET KEY AND SHOULD NEVER BE USED FOR PRODUCTION
|
||||||
AUTH_SECRET=AUTH_SECRET_VALUE
|
AUTH_SECRET=AUTH_SECRET_VALUE
|
||||||
|
|
||||||
# Postgres creds
|
# MongoDB
|
||||||
POSTGRES_PASSWORD=infisical
|
# Backend will connect to the MongoDB instance at connection string MONGO_URL which can either be a ref
|
||||||
POSTGRES_USER=infisical
|
# to the MongoDB container instance or Mongo Cloud
|
||||||
POSTGRES_DB=infisical
|
|
||||||
|
|
||||||
# Required
|
# Required
|
||||||
DB_CONNECTION_URI=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}
|
MONGO_URL=mongodb://root:MONGO_PASSWORD_VALUE@mongo:27017/?authSource=admin
|
||||||
|
|
||||||
# Redis
|
# Redis
|
||||||
REDIS_URL=redis://redis:6379
|
REDIS_URL=redis://redis:6379
|
||||||
|
|
||||||
|
# Optional credentials for MongoDB container instance and Mongo-Express
|
||||||
|
MONGO_USERNAME=root
|
||||||
|
MONGO_PASSWORD=MONGO_PASSWORD_VALUE
|
||||||
|
|
||||||
# Website URL
|
# Website URL
|
||||||
# Required
|
# Required
|
||||||
SITE_URL=https://secrets.koval.net
|
SITE_URL=https://secrets.koval.net
|
||||||
|
@ -68,4 +70,4 @@ CLIENT_SECRET_GITLAB_LOGIN=
|
||||||
|
|
||||||
# Other
|
# Other
|
||||||
INVITE_ONLY_SIGNUP=true
|
INVITE_ONLY_SIGNUP=true
|
||||||
TELEMETRY_ENABLED=false
|
TELEMETRY_ENABLED=false
|
|
@ -1,28 +1,11 @@
|
||||||
version: "3"
|
version: "3"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
db-migration:
|
|
||||||
depends_on:
|
|
||||||
db:
|
|
||||||
condition: service_healthy
|
|
||||||
image: infisical/infisical:latest-postgres
|
|
||||||
env_file: .env
|
|
||||||
command: npm run migration:latest
|
|
||||||
pull_policy: always
|
|
||||||
networks:
|
|
||||||
- infisical
|
|
||||||
|
|
||||||
backend:
|
backend:
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
depends_on:
|
depends_on:
|
||||||
db:
|
- mongo
|
||||||
condition: service_healthy
|
image: infisical/infisical:latest
|
||||||
redis:
|
|
||||||
condition: service_started
|
|
||||||
db-migration:
|
|
||||||
condition: service_completed_successfully
|
|
||||||
image: infisical/infisical:latest-postgres
|
|
||||||
pull_policy: always
|
|
||||||
env_file: .env
|
env_file: .env
|
||||||
ports:
|
ports:
|
||||||
- 80:8080
|
- 80:8080
|
||||||
|
@ -37,18 +20,14 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- 6379:6379
|
- 6379:6379
|
||||||
volumes:
|
volumes:
|
||||||
- /mnt/nvme/redis_data:/data
|
- /mnt/nvme/redis-data:/data
|
||||||
|
|
||||||
db:
|
mongo:
|
||||||
image: postgres:14-alpine
|
image: mongo
|
||||||
restart: always
|
restart: always
|
||||||
env_file: .env
|
env_file: .env
|
||||||
|
environment:
|
||||||
|
- MONGO_INITDB_ROOT_USERNAME=${MONGO_USERNAME}
|
||||||
|
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_PASSWORD}
|
||||||
volumes:
|
volumes:
|
||||||
- /mnt/nvme/pg_data:/var/lib/postgresql/data
|
- /mnt/nvme/mongo-data:/data/db
|
||||||
networks:
|
|
||||||
- infisical
|
|
||||||
healthcheck:
|
|
||||||
test: "pg_isready --username=${POSTGRES_USER} && psql --username=${POSTGRES_USER} --list"
|
|
||||||
interval: 5s
|
|
||||||
timeout: 10s
|
|
||||||
retries: 10
|
|
||||||
|
|
Loading…
Reference in New Issue