Skip to content

Commit 9fa66ca

Browse files
committed
Make the network environment variable dynamic for community/corporate
1 parent 70c2792 commit 9fa66ca

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

dockerfiles/docker-compose.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,8 +403,10 @@ services:
403403
# image). Bind-mounted onto PATH inside each build container.
404404
- RTD_HOST_RCLONE_PATH=${PWD}/${RTDDEV_PATH_BUILDER:-../readthedocs-builder}/rclone/rclone
405405
# Have build containers join the compose network so they can
406-
# reach the API at ``http://web`` via service-name DNS.
407-
- RTD_BUILD_NETWORK=community_readthedocs
406+
# reach the API at ``http://web`` via service-name DNS. Derived from the
407+
# compose project so it's correct for both community (``community``) and
408+
# commercial (``commercial``) — a hardcoded value breaks the other env.
409+
- RTD_BUILD_NETWORK=${COMPOSE_PROJECT_NAME}_readthedocs
408410
stdin_open: true
409411
tty: true
410412
networks:

0 commit comments

Comments
 (0)