Browse Source

Fix Docker call to include .env

Docker compose only includes .env if it is located in the same directory as the
docker-compose.yml, otherwise it needs to be explicitly stated.

Fix the example in README to reflect that behavior.
pull/5018/head
Stefan Haun 1 week ago
parent
commit
e396e824bd
  1. 6
      README.md

6
README.md

@ -118,7 +118,7 @@ We provide official container images hosted on [Docker Hub](https://hub.docker.c
Run the following command to start the Docker images from [Docker Hub](https://hub.docker.com/r/ghostfolio/ghostfolio): Run the following command to start the Docker images from [Docker Hub](https://hub.docker.com/r/ghostfolio/ghostfolio):
```bash ```bash
docker compose -f docker/docker-compose.yml up -d docker compose -f docker/docker-compose.yml --env-file .env up -d
``` ```
#### b. Build and run environment #### b. Build and run environment
@ -126,8 +126,8 @@ docker compose -f docker/docker-compose.yml up -d
Run the following commands to build and start the Docker images: Run the following commands to build and start the Docker images:
```bash ```bash
docker compose -f docker/docker-compose.build.yml build docker compose -f docker/docker-compose.build.yml --env-file .env build
docker compose -f docker/docker-compose.build.yml up -d docker compose -f docker/docker-compose.build.yml --env-file .env up -d
``` ```
#### Setup #### Setup

Loading…
Cancel
Save