-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add docker-compose merge file for production build (#1822)
* Add docker-compose merge file for production build This will allow the default docker-compose.yml file to build the development build, but allow passing an extra `-f` flag to docker compose in order to build the production build instead. * Remove redundant build-arg parameter in CI The docker-compose.production.yml file already defines the ENVIRONMENT build arg (and env var) everywhere required, so the command-line arg to docker compose is now redundant.
- Loading branch information
Showing
2 changed files
with
28 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
services: | ||
|
||
app: | ||
build: | ||
target: production | ||
args: | ||
- ENVIRONMENT=production | ||
environment: | ||
- ENVIRONMENT=production | ||
|
||
lfmerge: | ||
build: | ||
args: | ||
- ENVIRONMENT=production | ||
environment: | ||
- ENVIRONMENT=production | ||
|
||
e2e-app: | ||
build: | ||
args: | ||
- ENVIRONMENT=production | ||
environment: | ||
- ENVIRONMENT=production | ||
|
||
test-php: | ||
environment: | ||
- ENVIRONMENT=production |