mirror of
https://github.com/Haxxnet/Compose-Examples.git
synced 2025-11-23 08:54:27 +01:00
cleanup repo
This commit is contained in:
8
examples/n8n/.env
Normal file
8
examples/n8n/.env
Normal file
@@ -0,0 +1,8 @@
|
||||
MARIADB_ROOT_PASSWORD=changePassword
|
||||
|
||||
MARIADB_DATABASE=n8n
|
||||
MARIADB_USER=changeUser
|
||||
MARIADB_PASSWORD=changePassword
|
||||
|
||||
N8N_BASIC_AUTH_USER=changeUser
|
||||
N8N_BASIC_AUTH_PASSWORD=changePassword
|
||||
4
examples/n8n/README.md
Normal file
4
examples/n8n/README.md
Normal file
@@ -0,0 +1,4 @@
|
||||
# References
|
||||
|
||||
- https://github.com/n8n-io/n8n
|
||||
- https://github.com/n8n-io/n8n/tree/master/docker/compose/withMariaDB
|
||||
50
examples/n8n/docker-compose.yml
Normal file
50
examples/n8n/docker-compose.yml
Normal file
@@ -0,0 +1,50 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
n8n-db:
|
||||
image: mariadb:10.7
|
||||
container_name: n8n-db
|
||||
hostname: n8n-db
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- MARIADB_ROOT_PASSWORD
|
||||
- MARIADB_DATABASE
|
||||
- MARIADB_USER
|
||||
- MARIADB_PASSWORD
|
||||
- MARIADB_MYSQL_LOCALHOST_USER=true
|
||||
volumes:
|
||||
- /mnt/docker-volumes/n8n/database:/var/lib/mysql
|
||||
healthcheck:
|
||||
test: "/usr/bin/mysql --user=${MARIADB_USER} --password=${MARIADB_PASSWORD} --execute 'SELECT 1;'"
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 10
|
||||
|
||||
n8n:
|
||||
image: n8nio/n8n
|
||||
container_name: n8n
|
||||
hostname: n8n
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- DB_TYPE=mariadb
|
||||
- DB_MYSQLDB_HOST=n8n-db
|
||||
- DB_MYSQLDB_DATABASE=${MARIADB_DATABASE}
|
||||
- DB_MYSQLDB_USER=${MARIADB_USER}
|
||||
- DB_MYSQLDB_PASSWORD=${MARIADB_PASSWORD}
|
||||
ports:
|
||||
- 5678:5678
|
||||
links:
|
||||
- n8n-db
|
||||
volumes:
|
||||
- /mnt/docker-volumes/n8n/storage:/home/node/.n8n
|
||||
command: n8n start --tunnel
|
||||
depends_on:
|
||||
n8n-db:
|
||||
condition: service_healthy
|
||||
#labels:
|
||||
# - traefik.enable=true
|
||||
# - traefik.http.routers.n8n.rule=Host(`n8n.example.com`)
|
||||
# - traefik.http.services.n8n.loadbalancer.server.port=5678
|
||||
# - traefik.docker.network=proxy
|
||||
# # Part for optional traefik middlewares
|
||||
# - traefik.http.routers.n8n.middlewares=local-ipwhitelist@file,basic-auth@file
|
||||
Reference in New Issue
Block a user