@@ -134,7 +134,13 @@ This will not cache dependencies - in particular, you'll have to rebuild all 400
134134but makes sure that you're in a known environment so you should have fewer problems getting started.
135135
136136You'll need to ` touch .docker.env ` first, this file can have any environment
137- variable overrides you want to use in docker containers.
137+ variable overrides you want to use in docker containers. Then run the migrations
138+ before launching the main services:
139+
140+ ``` sh
141+ docker compose run --build --rm cli database migrate
142+ docker compose up --build -d
143+ ```
138144
139145You can also use the ` builder-a ` container to run builds on systems which don't support running builds directly (mostly on Mac OS or Windows):
140146
@@ -154,15 +160,25 @@ docker compose run --rm cli database migrate
154160docker compose run --rm cli queue add regex 1.3.1
155161```
156162
157- If the command needs the crates.io-index clone then it must be run from within
158- a ` registry-watcher ` container:
163+ If you want to run the registry watcher, you'll need to first set the "last seen
164+ reference" from the registry index, e.g. to set it to the current head so only
165+ newly published crates are built:
166+
167+ ``` sh
168+ docker compose run --rm cli queue set-last-seen-reference --head
169+ ```
170+
171+ Then enable the docker-compose profile that includes the watcher:
159172
160173``` sh
161- docker compose run --rm registry-watcher queue set-last-seen-reference --head
174+ docker compose --profile watch up --build -d
162175```
163176
164177Note that running tests is not supported when using pure docker-compose.
165178
179+ Some of the above commands are included in the ` Justfile ` for ease of use,
180+ check the ` [compose] ` group in ` just --list ` .
181+
166182Please file bugs for any trouble you have running docs.rs!
167183
168184### Docker-Compose
0 commit comments