Skip to content

Commit db3b27d

Browse files
committed
Add docker compose --build flag notes
1 parent 8b0ab27 commit db3b27d

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

resources/docs/dev/get-started/containers.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ By default we are using official [Redis](https://redis.io/) as cache and session
3030

3131
[PhpRedis](https://github.com/phpredis/phpredis) extension is required for Redis support. By the official [Laravel Redis Docs](https://laravel.com/docs/12.x/redis#introduction) suggestion we are using as PHP extension. This extension is installed with Dockerfiles.
3232

33-
<a name="docker-compose"></a>
34-
3533
## 🔸 Docker Compose
3634

3735
In this project all features are containerized and can be run with a single command. You can run the following command to start all containers:
@@ -51,3 +49,17 @@ docker compose up -d
5149
You can modify the docker-compose files if needed (e.g. adding services, removing services etc.).
5250

5351
> {info} Default docker-compose files: `./docker-compose.yml`, `./docker-compose-dev.yml`
52+
53+
Some changes are not affected by docker-compose files. For example, when you change the database user or password, `.env` changes won't affect the containers. You need to rebuild the containers to apply the changes with `--build` flag.
54+
55+
Dev:
56+
57+
```bash
58+
docker compose -f docker-compose-dev.yml up -d --build
59+
```
60+
61+
Prod:
62+
63+
```bash
64+
docker compose up -d --build
65+
```

0 commit comments

Comments
 (0)