roycorderov

joined 1 year ago
 

what's up folks,
I am always looking for how to improve my infrastructure and these days I have been thinking about the feasibility of creating an lxc container or a vm in my proxmox just to install a db like mariadb and all the other services in another lxc's that will need a db for example wordpress, odoo, speedtest tracker, n8n etc. will point to that lxc or vm with the db of mariadb (or another)...

would it be good?, would it be bad? Would it be a good practice? Would it provide any bad performance? or would it be a benefit?

what do you think?

[–] [email protected] 1 points 11 months ago

ok... I couldn't install docker with postgres so I did it with sql and that's it I hope I don't miss out in the future because I will have to look for someone to help me install it thanks friends

[–] [email protected] 1 points 11 months ago (1 children)

Please, I'm struggling with the docker-compose with postgres to get my n8n up and running... so just copy the docker-compose from the doc and made changes for my needs, could you tell me if im doin it rigth? or should I change something?

i want all data in: /docker/n8n/ so

root@13-n8n-RL23-WG /docker/n8n# nano .env

POSTGRES_USER=user-root

POSTGRES_PASSWORD=password-root

POSTGRES_DB=n8n

POSTGRES_NON_ROOT_USER=user-nonroot

POSTGRES_NON_ROOT_PASSWORD=password-nonroot

root@13-n8n-RL23-WG /docker/n8n# nano docker-compose.yml

version: '3.8'

volumes:

db_storage:

n8n_storage:

services:

postgres:

image: postgres:11

restart: always

environment:

- POSTGRES_USER

- POSTGRES_PASSWORD

- POSTGRES_DB

- POSTGRES_NON_ROOT_USER

- POSTGRES_NON_ROOT_PASSWORD

volumes:

- /docker/n8n/postgresql/data:/var/lib/postgresql/data

- ./init-data.sh:/docker-entrypoint-initdb.d/init-data.sh

healthcheck:

test: ['CMD-SHELL', 'pg_isready -h localhost -U ${POSTGRES_USER} -d ${POSTGRES_DB}']

interval: 5s

timeout: 5s

retries: 10

n8n:

image: docker.n8n.io/n8nio/n8n

restart: always

environment:

- DB_TYPE=postgresdb

- DB_POSTGRESDB_HOST=postgres

- DB_POSTGRESDB_PORT=5432

- DB_POSTGRESDB_DATABASE=${POSTGRES_DB}

- DB_POSTGRESDB_USER=${POSTGRES_NON_ROOT_USER}

- DB_POSTGRESDB_PASSWORD=${POSTGRES_NON_ROOT_PASSWORD}

- WEBHOOK_URL=https://subdomain.wtf.org/

- EXECUTIONS_PROCESS=main

- GENERIC_TIMEZONE=America/La_Paz

- TZ=America/La_Paz

ports:

- 5678:5678

links:

- postgres

volumes:

- /docker/n8n:/home/node/.n8n

depends_on:

postgres:

condition: service_healthy

[–] [email protected] 1 points 11 months ago

thanks I will go for postgres database because of what I have been advised and additionally because I have been told that soon n8n will remove mysql/mariadb support.

[–] [email protected] 1 points 11 months ago

I will create a lxc conteiner in my proxmox just for him so my question would be... which one would be more secure that it will not have problems in the future? for example that it is slower or easier to be damaged or lose information or that it lacks some feature, do you know what I mean? but ok i wil go with a database thanks!

[–] [email protected] 0 points 11 months ago (1 children)

I will create a lxc conteiner in my proxmox just for him so my question would be... which one would be more secure that it will not have problems in the future? for example that it is slower or easier to be damaged or lose information or that it lacks some feature, do you know what I mean?

[–] [email protected] 1 points 11 months ago
 

hi folks i am starting to use n8n and i want to do some automations in my kommo crm and other things, but i have seen that there are several ways to install n8n in a self hosted way, so my question is for those who have n8n as self hosted services,

which would be the best way to install it?

- docker without database?
- docker with database and which database would be better postgress or mysql?
thanks

 

hi pals!

These days I am bothered by a question to improve the performance of my proxmox server. I hope you can advise me:

My Proxmos 8 24/7 is on an old dell optiplex 7010 4 x Intel(R) Core(TM) i3-3225 CPU @ 3.30GHz, 32gb RAM and it doesn't give me problems normally it is at 20% CPU usage, 60% ram usage, 5% swap, and 12% disk usage and I have the following CT's and VM's configuration:

4 VMs (VM1 linux lite 5gb RAM) (VM2 win10 5gb RAM) (VM3 xpenology 4gb RAM) (VM4 OpenWrt 1gb RAM) all in production

7 LXC CT (CT1 512mg RAM, 1 docker service in production 1WP) (CT2 1gb RAM, 3 docker services in production POLR, CALIBER WEB, MATOMO) (CT3 2gb RAM, 8 docker services in production EXCALIDRAW, UPTIME-KUMA, CODE- SERVER, IPERF3, GUACAMOLE, HEIMDALL, LIBRESPEED, MEMOS) (CT4 2.5gb RAM 6 docker services in production 4WP, LITTLE-LINK, CALIBRE-WEB) (CT5 250mg RAM, 3 docker services in production 3VAULTWARDEN) (CT6 512mb RAM 2 services docker in production SPEEDTEST-TRACKER, OPEN-SPEED-TEST) (CT7 3gb RAM nextcloud in production)

My question is which of the following configurations could be best to increase the performance of my server?
1- create an LXC CT for each docker service, for example, 1LXC CT with RAM optimized for 1 each of my 5 WORDPRESS's docker with the databases, 1LXC CT with RAM optimized for 1 guacamole's docker , 1LXC CT with RAM optimized for matomo and so on for each service, or.

2- the same as I was doing until now, 1 LXC CT with optimized RAM and several docker services, or

3- 1 VM with good RAM and all the docker services inside?

I am also thinking about the fact that each LXC CT makes requests to the kernel, but also about the good use of cpu, ram and kernel resources.
Just in case I have a CGNAT so all my services go to the internet using cloudflare for CND domains and security, an external vps with wireguard and nginx.

thanks!

[–] [email protected] 1 points 1 year ago

I got my proxmox in production and I've installed before whatschtower and just broke me down 4 containers with bad updates so I stoped from using whatschtower...

I would like any services that just notify me about any new docker image update whitout making any updating