mirror of
https://git.roussel.pro/telecom-paris/pact.git
synced 2026-02-09 10:30: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
|
INSERT INTO `borne_criteres` (`id`, `nom`) VALUES
|
||||||
(1, 'analyse');
|
(1, 'analyse'),
|
||||||
(2, 'proprete'),
|
(2, 'proprete'),
|
||||||
(3, 'calme'),
|
(3, 'calme'),
|
||||||
(4, 'attente');
|
(4, 'attente');
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ services:
|
|||||||
- 3306
|
- 3306
|
||||||
volumes:
|
volumes:
|
||||||
- ./db:/docker-entrypoint-initdb.d
|
- ./db:/docker-entrypoint-initdb.d
|
||||||
|
- ./db/dbdata:/var/lib/mysql
|
||||||
restart: always
|
restart: always
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost", "-uroot"] # Command to check health.
|
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost", "-uroot"] # Command to check health.
|
||||||
|
|||||||
Reference in New Issue
Block a user