Skip to content

Commit a124906

Browse files
committed
Use DEV_DOCKER constant only in docker-compose.yml file
1 parent c108626 commit a124906

File tree

3 files changed

+1
-7
lines changed

3 files changed

+1
-7
lines changed

.env.sample

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# Toggle for server configuration in development when using Docker.
2-
export DEV_DOCKER=1
3-
41
# Location of the *postgres* database. For example, if you have created a
52
# blank database locally named `cargo_registry`, this would be
63
# `postgres://postgres@localhost/cargo_registry`.

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ services:
1515
context: .
1616
dockerfile: backend.Dockerfile
1717
environment:
18+
DEV_DOCKER: "true"
1819
DATABASE_URL: postgres://postgres:password@postgres/cargo_registry
1920
SESSION_KEY: badkeyabcdefghijklmnopqrstuvwxyzabcdef
2021
GIT_REPO_URL: file://./tmp/index-bare

docs/CONTRIBUTING.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -513,9 +513,6 @@ one go:
513513
docker-compose up -d
514514
```
515515
516-
> **Note:** set `DEV_DOCKER=1` in a `.env` or `docker-compose.override.yml`
517-
file when working with Docker in development.
518-
519516
The Compose file is filled out with a sane set of defaults that should Just
520517
Work™ out of the box without any modification. Individual settings can be
521518
overridden by creating a `docker-compose.override.yml` with the updated config.
@@ -529,7 +526,6 @@ services:
529526
environment:
530527
GH_CLIENT_ID: blahblah_ID
531528
GH_CLIENT_SECRET: blahblah_secret
532-
DEV_DOCKER: 1
533529
```
534530

535531
These environment variables can also be defined in a local `.env` file, see `.env.sample`

0 commit comments

Comments
 (0)