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');
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user