-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Split dev and prod into separate run options (#52)
- Loading branch information
1 parent
71003ae
commit dbcffdf
Showing
5 changed files
with
96 additions
and
38 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Overrides for dev environment | ||
# This should automatically override the docker-compose.yaml file | ||
# `docker-compose -f docker-compose.yaml -f docker-compose.prod.yaml up` | ||
services: | ||
frontend: | ||
build: | ||
context: ./frontend | ||
container_name: frontend | ||
volumes: | ||
- ./frontend/src:/app/src | ||
- ./frontend/.next:/app/.next | ||
- ./frontend/node_modules:/app/node_modules |
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,10 @@ | ||
# Overrides for prod environment | ||
# Merge this into the main docker-compose.yaml file using | ||
# `docker-compose -f docker-compose.yaml -f docker-compose.prod.yaml up` | ||
services: | ||
frontend: | ||
build: | ||
context: ./frontend | ||
container_name: frontend | ||
volumes: | ||
- ./frontend/src:/app/src |
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
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