1- # Upgrading instructions for ` docker- compose `
1+ # Upgrading instructions for ` docker compose `
22
33You can upgrade your Zulip installation to any newer version of Zulip with the
44following instructions. At a high level, the strategy is to download a new
@@ -58,18 +58,18 @@ All of the instructions below assume you are using the provided
5858
5959 ` ` ` shell
6060 # Stops the old zulip container; this begins your downtime
61- docker- compose stop
61+ docker compose stop
6262 # Boots the new zulip container; this ends your downtime
63- docker- compose up
63+ docker compose up
6464 # Deletes the old container images
65- docker- compose rm
65+ docker compose rm
6666 ```
6767
6868That's it! Zulip is now running the updated version.
6969You can confirm you're running the latest version by running:
7070
7171``` shell
72- docker- compose exec -u zulip zulip cat /home/zulip/deployments/current/version.py
72+ docker compose exec -u zulip zulip cat /home/zulip/deployments/current/version.py
7373```
7474
7575## Upgrading from a Git repository
@@ -92,7 +92,7 @@ docker-compose exec -u zulip zulip cat /home/zulip/deployments/current/version.p
9292 and `ZULIP_GIT_REF` to be any ref name in that repository (e.g. `main` or
9393 ` 1.9.0` or `445932cc8613c77ced023125248c8b966b3b7528`).
9494
95- 2. Run `docker- compose build zulip` to build a Zulip Docker image from the
95+ 2. Run `docker compose build zulip` to build a Zulip Docker image from the
9696 specified Git version.
9797
9898Then stop and restart the container as described in the previous section.
@@ -110,7 +110,7 @@ If you elect to switch to managed Docker volumes, you can copy the data out of
110110
111111` ` ` shell
112112# Stop the containers
113- docker- compose stop
113+ docker compose stop
114114
115115# Copy the data into new managed volumes:
116116zulip_volume_sync() { docker run -it --rm -v "/opt/docker/zulip/$1:/src" -v "$(basename "$(pwd)")_${2:$1}":/dst ubuntu:20.04 sh -c 'cd /src; cp -a . /dst' ; }
@@ -124,13 +124,13 @@ zulip_volume_sync redis
124124$EDITOR docker-compose.yml
125125
126126# Start the containers again
127- docker- compose start
127+ docker compose start
128128```
129129
130130## Upgrading zulip/zulip-postgresql to 14 (version 6.0-0 and above)
131131
132132As of Docker Zulip 6.0-0, we have upgraded the version of PostgreSQL which our
133- docker- compose configuration uses, from PostgreSQL 10 (which is no longer
133+ ` docker compose.yml ` configuration uses, from PostgreSQL 10 (which is no longer
134134supported) to PostgreSQL 14. Because the on-disk storage is not compatible
135135between PostgreSQL versions, this requires more than simply switching which
136136PostgreSQL docker image is used — the data must be dumped from PostgreSQL 10,
@@ -149,9 +149,9 @@ You can perform this step either before or after updating to use Docker volumes
149149(above). In either case, the updated ` docker-compose.yml ` will use a new Docker
150150volume for the upgraded PostgreSQL 14 data.
151151
152- The ` upgrade-postgresql ` tool requires ` docker- compose ` 2.1.1 or higher.
152+ The ` upgrade-postgresql ` tool requires ` docker compose ` 2.1.1 or higher.
153153
154- If the tool does not work, you have too old a ` docker- compose ` , or you would
154+ If the tool does not work, you have too old a ` docker compose ` , or you would
155155prefer to perform the steps manually, see the steps below. These instructions
156156assume that you have not changed the default Postgres data path
157157(` /opt/docker/zulip/postgresql/data ` ) in your ` docker-compose.yml ` . If you have
@@ -163,7 +163,7 @@ changed it, please replace all occurrences of
1631632 . Stop the Zulip container:
164164
165165 ``` shell
166- docker- compose stop zulip
166+ docker compose stop zulip
167167 ```
168168
1691693 . Create a new (upgraded) Postgres container using a different data directory:
@@ -183,7 +183,7 @@ changed it, please replace all occurrences of
183183 upgrade):
184184
185185 ``` shell
186- docker- compose exec database pg_dumpall -U zulip | \
186+ docker compose exec database pg_dumpall -U zulip | \
187187 docker exec -i postgresnew psql -U zulip
188188
189189 echo " ALTER USER zulip WITH PASSWORD 'REPLACE_WITH_SECURE_POSTGRES_PASSWORD';" |
@@ -193,7 +193,7 @@ changed it, please replace all occurrences of
1931935 . Stop and remove both Postgres containers:
194194
195195 ``` shell
196- docker- compose rm --stop database
196+ docker compose rm --stop database
197197 docker stop postgresnew
198198 docker rm postgresnew
199199 ```
@@ -207,7 +207,7 @@ changed it, please replace all occurrences of
207207
2082088 . Start Zulip up again:
209209 ``` shell
210- docker- compose up
210+ docker compose up
211211 ```
212212
213213## Upgrading from the old galexrt/docker-zulip
@@ -225,7 +225,7 @@ have changed it, please replace all occurences of
2252251 . Make a backup of your Zulip PostgreSQL data directory.
226226
2272272 . Stop all Zulip containers, except the postgres one (e.g. use ` docker stop `
228- and not ` docker- compose stop ` ).
228+ and not ` docker compose stop ` ).
229229
2302303 . Create a new (upgraded) PostgreSQL container using a different data
231231 directory:
@@ -244,14 +244,14 @@ have changed it, please replace all occurences of
244244 the new PostgreSQL container:
245245
246246 ``` shell
247- docker- compose exec database pg_dumpall -U postgres | \
247+ docker compose exec database pg_dumpall -U postgres | \
248248 docker exec -i postgresnew psql -U postgres
249249 ```
250250
2512515 . Stop and remove both PostgreSQL containers:
252252
253253 ``` shell
254- docker- compose rm --stop database
254+ docker compose rm --stop database
255255 docker rm --stop postgresnew
256256 ```
257257
@@ -269,11 +269,11 @@ have changed it, please replace all occurences of
2692698 . Delete the old existing containers:
270270
271271 ``` shell
272- docker- compose rm
272+ docker compose rm
273273 ```
274274
2752759 . Start Zulip up again:
276276
277277 ``` shell
278- docker- compose up
278+ docker compose up
279279 ```
0 commit comments