This commit is contained in:
enzo
2026-02-12 16:29:13 +01:00
parent 6eff7c6680
commit d340da152f
3 changed files with 19 additions and 4 deletions

View File

@@ -6,7 +6,7 @@ services:
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"

15
docker_compose.yml Normal file
View 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/

View File

@@ -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;