putzen
This commit is contained in:
12
Dev/mysql/mysql_n8n_db/.env
Normal file
12
Dev/mysql/mysql_n8n_db/.env
Normal file
@@ -0,0 +1,12 @@
|
||||
# Docker-Compose Environment Variables for MySQL
|
||||
|
||||
# Path for MySQL data storage on the host machine
|
||||
# Az adatbázis adatai a '/home/wpanda/mysql_data/n8n_db' mappába kerülnek mentésre.
|
||||
# Ezt az elérési utat tetszés szerint módosíthatod.
|
||||
MYSQL_DATA_PATH=/home/wpanda/mysql_data/n8n_db
|
||||
|
||||
# MySQL Credentials
|
||||
MYSQL_ROOT_PASSWORD=virgI6774
|
||||
MYSQL_DATABASE=n8ndb
|
||||
MYSQL_USER=n8n
|
||||
MYSQL_PASSWORD=virgI6774
|
||||
25
Dev/mysql/mysql_n8n_db/README.md
Normal file
25
Dev/mysql/mysql_n8n_db/README.md
Normal file
@@ -0,0 +1,25 @@
|
||||
# MySQL Docker Container
|
||||
|
||||
This directory contains the configuration for running MySQL in a Docker container.
|
||||
|
||||
## Configuration
|
||||
|
||||
The configuration is managed through the `.env` file. You can change the following variables:
|
||||
|
||||
- `MYSQL_DATA_PATH`: The local directory where the database data will be stored. By default, it's set to `./data` within this directory.
|
||||
- `MYSQL_ROOT_PASSWORD`: The root password for the MySQL instance.
|
||||
- `MYSQL_DATABASE`: The name of the database to be created on startup.
|
||||
- `MYSQL_USER`: The username for a non-root user.
|
||||
- `MYSQL_PASSWORD`: The password for the non-root user.
|
||||
|
||||
## Usage
|
||||
|
||||
To start the container, navigate to this directory (`Dev/mysql`) and run the following command:
|
||||
```bash
|
||||
docker-compose up -d
|
||||
```
|
||||
|
||||
To stop the container:
|
||||
```bash
|
||||
docker-compose down
|
||||
```
|
||||
20
Dev/mysql/mysql_n8n_db/docker-compose.yml
Normal file
20
Dev/mysql/mysql_n8n_db/docker-compose.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
services:
|
||||
mysql_ip:
|
||||
image: mysql:latest
|
||||
container_name: mysql_n8n_db
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
|
||||
MYSQL_DATABASE: ${MYSQL_DATABASE}
|
||||
MYSQL_USER: ${MYSQL_USER}
|
||||
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
|
||||
ports:
|
||||
- '3336:3306'
|
||||
volumes:
|
||||
- ${MYSQL_DATA_PATH}:/var/lib/mysql
|
||||
networks:
|
||||
- shared-network
|
||||
|
||||
networks:
|
||||
shared-network:
|
||||
external: true
|
||||
Reference in New Issue
Block a user