@@ -122,7 +122,13 @@ This will not cache dependencies - in particular, you'll have to rebuild all 400
122122but makes sure that you're in a known environment so you should have fewer problems getting started.
123123
124124You'll need to ` touch .docker.env ` first, this file can have any environment
125- variable overrides you want to use in docker containers.
125+ variable overrides you want to use in docker containers. Then run the migrations
126+ before launching the main services:
127+
128+ ``` sh
129+ docker compose run --build --rm cli database migrate
130+ docker compose up --build -d
131+ ```
126132
127133You 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):
128134
@@ -142,15 +148,25 @@ docker compose run --rm cli database migrate
142148docker compose run --rm cli queue add regex 1.3.1
143149```
144150
145- If the command needs the crates.io-index clone then it must be run from within
146- a ` registry-watcher ` container:
151+ If you want to run the registry watcher, you'll need to first set the "last seen
152+ reference" from the registry index, e.g. to set it to the current head so only
153+ newly published crates are built:
154+
155+ ``` sh
156+ docker compose run --rm cli queue set-last-seen-reference --head
157+ ```
158+
159+ Then enable the docker-compose profile that includes the watcher:
147160
148161``` sh
149- docker compose run --rm registry-watcher queue set-last-seen-reference --head
162+ docker compose --profile watch up --build -d
150163```
151164
152165Note that running tests is not supported when using pure docker-compose.
153166
167+ Some of the above commands are included in the ` Justfile ` for ease of use,
168+ check the ` [compose] ` group in ` just --list ` .
169+
154170Please file bugs for any trouble you have running docs.rs!
155171
156172### Docker-Compose
0 commit comments