fix(docker): épingler mongo:8.2 pour compatibilité noyau 7.x
This commit is contained in:
1 parent
2ddb687286
commit
9d743d898f
1 file changed
+6
-6
+6
-6
@@ -9,18 +9,18 @@ services:
|
||||
MYSQL_USER: flashcards
|
||||
MYSQL_PASSWORD: flashcards
|
||||
ports:
|
||||
- "13306:3306"
|
||||
- '13306:3306'
|
||||
volumes:
|
||||
- flashcards-mysql-data:/var/lib/mysql
|
||||
- ./docker/init/mysql:/docker-entrypoint-initdb.d:ro
|
||||
healthcheck:
|
||||
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-uroot", "-proot"]
|
||||
test: ['CMD', 'mysqladmin', 'ping', '-h', 'localhost', '-uroot', '-proot']
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 20
|
||||
|
||||
mongo:
|
||||
image: mongo:8
|
||||
image: mongo:8.2
|
||||
container_name: flashcards-mongo
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
@@ -28,16 +28,16 @@ services:
|
||||
MONGO_INITDB_ROOT_PASSWORD: flashcards
|
||||
MONGO_INITDB_DATABASE: flashcards
|
||||
ports:
|
||||
- "27018:27017"
|
||||
- '27018:27017'
|
||||
volumes:
|
||||
- flashcards-mongo-data:/data/db
|
||||
- ./docker/init/mongo:/docker-entrypoint-initdb.d:ro
|
||||
healthcheck:
|
||||
test: ["CMD", "mongosh", "--quiet", "--eval", "db.runCommand({ ping: 1 })"]
|
||||
test: ['CMD', 'mongosh', '--quiet', '--eval', 'db.runCommand({ ping: 1 })']
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 20
|
||||
|
||||
volumes:
|
||||
flashcards-mysql-data:
|
||||
flashcards-mongo-data:
|
||||
flashcards-mongo-data:
|
||||
Reference in new issue
Block a user