@@ -7,31 +7,19 @@ USE_POSTGRES=$4
77
88echo " Starting FerretDB version ${FERRETDB_VERSION} on port ${FERRETDB_PORT} "
99
10- if [ " $USE_POSTGRES " = " true" ]; then
11- echo " Starting FerretDB with Postgres"
12-
13- docker network create ferretdb
14-
15- docker run --network ferretdb --name postgres \
16- -e POSTGRES_USER=username \
17- -e POSTGRES_PASSWORD=password \
18- -e POSTGRES_DB=ferretdb \
19- -d postgres
20-
21- docker run --network ferretdb --name ferretdb \
22- -p $FERRETDB_PORT :27017 \
23- -e FERRETDB_POSTGRESQL_URL=postgres://username:password@postgres:5432/ferretdb? pool_max_conns=40 \
24- -e FERRETDB_TELEMETRY=$FERRETDB_TELEMETRY \
25- -d ghcr.io/ferretdb/ferretdb:$FERRETDB_VERSION
26- else
27- echo " Starting FerretDB with sqlite"
28-
29- docker run --name ferretdb \
30- -p $FERRETDB_PORT :27017 \
31- -e FERRETDB_HANDLER=sqlite \
32- -e FERRETDB_TELEMETRY=$FERRETDB_TELEMETRY \
33- -d ghcr.io/ferretdb/ferretdb:$FERRETDB_VERSION
34- fi
10+ docker network create ferretdb
11+
12+ docker run --network ferretdb --name postgres \
13+ -e POSTGRES_USER=username \
14+ -e POSTGRES_PASSWORD=password \
15+ -e POSTGRES_DB=ferretdb \
16+ -d ghcr.io/ferretdb/postgres-documentdb:latest
17+
18+ docker run --network ferretdb --name ferretdb \
19+ -p $FERRETDB_PORT :27017 \
20+ -e FERRETDB_POSTGRESQL_URL=postgres://username:password@postgres:5432/ferretdb? pool_max_conns=40 \
21+ -e FERRETDB_TELEMETRY=$FERRETDB_TELEMETRY \
22+ -d ghcr.io/ferretdb/ferretdb:$FERRETDB_VERSION
3523
3624if [ $? -ne 0 ]; then
3725 echo " Error starting FerretDB Docker container"
0 commit comments