@@ -69,33 +69,32 @@ x-healthcheck: &healthcheck-interval
6969 start_period : 10s
7070
7171x-environment : &environment
72- # FIXME: change to FOO: ${FOO:-default123 where these vars are just a
73- # default that should be possible to override
74- RUST_BACKTRACE : true
75- DOCSRS_LOG : docs_rs=trace,tower_http=debug,rustwide=info,aws_smithy_http=trace,axum=debug
72+ # default environment that can be overwritten in `.docker.env
73+ RUST_BACKTRACE : ${RUST_BACKTRACE:-true}
74+ DOCSRS_LOG : ${DOCSRS_LOG:-docs_rs=trace,tower_http=debug,rustwide=info,aws_smithy_http=trace,axum=debug}
7675
76+ # fixed environment to connect the different services in this file properly
7777 DOCSRS_PREFIX : /opt/docsrs/prefix
78-
7978 DOCSRS_DATABASE_URL : postgresql://cratesfyi:password@db
8079 DOCSRS_MIN_POOL_IDLE : 1
8180 DOCSRS_MIN_POOL_SIZE : 2
8281 DOCSRS_MAX_POOL_SIZE : 10
83- DOCSRS_MAX_LEGACY_POOL_SIZE : 10
84-
8582 DOCSRS_STORAGE_BACKEND : s3
86-
8783 S3_ENDPOINT : http://s3:9000
8884 AWS_ACCESS_KEY_ID : cratesfyi
8985 AWS_SECRET_ACCESS_KEY : secret_key
9086
9187x-builder-environment : &builder-environment
9288 << : *environment
89+ # default builder environment that can be overwritten in `.docker.env
90+ DOCSRS_INCLUDE_DEFAULT_TARGETS : ${DOCSRS_INCLUDE_DEFAULT_TARGETS:-false}
91+ DOCSRS_DOCKER_IMAGE : ${DOCSRS_DOCKER_IMAGE:-ghcr.io/rust-lang/crates-build-env/linux-micro}
92+
93+ # fixed environment to connect the different services in this file properly
9394 DOCSRS_RUSTWIDE_WORKSPACE : /opt/docsrs/rustwide
9495 DOCSRS_COMPILER_METRICS_PATH : /opt/docsrs/prefix/metrics
9596 DOCSRS_DOCKER : true
96- DOCSRS_DOCKER_IMAGE : ghcr.io/rust-lang/crates-build-env/linux-micro
9797 DOCSRS_BUILD_CPU_LIMIT : 2
98- DOCSRS_INCLUDE_DEFAULT_TARGETS : false
9998
10099x-build : &build
101100 context : .
@@ -143,8 +142,7 @@ x-registry-watcher: ®istry-watcher
143142 # Also on a native docker volume for performance
144143 REGISTRY_INDEX_PATH : /opt/docsrs/crates.io-index
145144 # configure the rebuild-queuer
146- DOCSRS_MAX_QUEUED_REBUILDS : 10
147-
145+ DOCSRS_MAX_QUEUED_REBUILDS : ${DOCSRS_MAX_QUEUED_REBUILDS:-10}
148146 env_file :
149147 - .docker.env
150148 healthcheck :
@@ -164,6 +162,7 @@ services:
164162 environment :
165163 << : *environment
166164 DOCSRS_RENDER_THREADS : 2
165+ DOCSRS_S3_STATIC_ROOT_PATH : http://localhost:9000/rust-docs-rs
167166 env_file :
168167 - .docker.env
169168 healthcheck :
0 commit comments