mirror of
https://git.roussel.pro/telecom-paris/pact.git
synced 2026-02-09 02:20:17 +01:00
fix bdd non permanente
This commit is contained in:
1
code/db/.gitignore
vendored
Normal file
1
code/db/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
dbdata
|
||||
@@ -52,7 +52,7 @@ CREATE TABLE `borne_criteres` (
|
||||
--
|
||||
|
||||
INSERT INTO `borne_criteres` (`id`, `nom`) VALUES
|
||||
(1, 'analyse');
|
||||
(1, 'analyse'),
|
||||
(2, 'proprete'),
|
||||
(3, 'calme'),
|
||||
(4, 'attente');
|
||||
@@ -426,4 +426,4 @@ ALTER TABLE `stats_general_mois`
|
||||
--
|
||||
ALTER TABLE `stats_general_semaine`
|
||||
MODIFY `id` int NOT NULL AUTO_INCREMENT;
|
||||
COMMIT;
|
||||
COMMIT;
|
||||
|
||||
@@ -9,6 +9,7 @@ services:
|
||||
- 3306
|
||||
volumes:
|
||||
- ./db:/docker-entrypoint-initdb.d
|
||||
- ./db/dbdata:/var/lib/mysql
|
||||
restart: always
|
||||
healthcheck:
|
||||
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost", "-uroot"] # Command to check health.
|
||||
@@ -124,4 +125,4 @@ services:
|
||||
devices:
|
||||
- /dev/video0:/dev/video0
|
||||
- /dev/video2:/dev/video1
|
||||
- /dev/video3:/dev/video2
|
||||
- /dev/video3:/dev/video2
|
||||
|
||||
Reference in New Issue
Block a user