4%
This commit is contained in:
@@ -1,13 +1,13 @@
|
|||||||
version: '3.8'
|
version: '3.8'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
DB:
|
DB:
|
||||||
image: mariadb:latest
|
image: mariadb:latest
|
||||||
container_name: DB_Trash
|
container_name: DB_Trash
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
MYSQL_ROOT_PASSWORD: Doupio_750985$
|
MYSQL_ROOT_PASSWORD: Doupio_75098515020
|
||||||
MYSQL_DATABASE: smart_trash
|
MYSQL_DATABASE: smart_trash
|
||||||
ports:
|
ports:
|
||||||
- "3306:3306"
|
- "3306:3306"
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
15
docker_compose.yml
Normal file
15
docker_compose.yml
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
version: '3.8'
|
||||||
|
|
||||||
|
services:
|
||||||
|
DB:
|
||||||
|
image: mariadb:latest
|
||||||
|
container_name: DB_Trash
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
MYSQL_ROOT_PASSWORD: Doupio_750985$
|
||||||
|
MYSQL_DATABASE: smart_trash
|
||||||
|
ports:
|
||||||
|
- "3306:3306"
|
||||||
|
volumes:
|
||||||
|
- ./data:/var/lib/mysql
|
||||||
|
- ./:/docker-entrypoint-initdb.d/
|
||||||
@@ -26,6 +26,6 @@ CREATE TABLE measurements (
|
|||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
CREATE USER IF NOT EXISTS 'web_user'@'%' IDENTIFIED BY 'Doupio_750985$';
|
CREATE USER IF NOT EXISTS 'web_user'@'%' IDENTIFIED BY 'Doupio_750985$$';
|
||||||
GRANT ALL PRIVILEGES ON smart_bins.* TO 'web_user'@'%';
|
GRANT ALL PRIVILEGES ON smart_bins.* TO 'web_user'@'%';
|
||||||
FLUSH PRIVILEGES;
|
FLUSH PRIVILEGES;
|
||||||
|
|||||||
Reference in New Issue
Block a user