mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
fix: add restart policy to MongoDB container for flaky CI starts
MongoDB's official Docker entrypoint uses a two-phase startup: a temporary mongod for user/db init, then the real mongod. Under CI resource pressure the port may not be released between the two phases, causing mongod to exit with code 48 (address already in use). Adding restart: on-failure:3 lets Docker handle the transient failure natively. On restart the data directory already exists so the entrypoint skips the two-phase init entirely, avoiding the race.
This commit is contained in:
@@ -1288,6 +1288,7 @@ services:
|
||||
image: mongo:8.2.5
|
||||
container_name: appwrite-mongodb
|
||||
<<: *x-logging
|
||||
restart: on-failure:3
|
||||
networks:
|
||||
- appwrite
|
||||
volumes:
|
||||
|
||||
Reference in New Issue
Block a user