-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from ptitloup/insee-compose
[DONE] add compose dev to use docker as dev contener environement, add host …
- Loading branch information
Showing
3 changed files
with
28 additions
and
1 deletion.
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 |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# Compose | ||
.env-compose | ||
|
||
# Logs | ||
logs | ||
*.log | ||
|
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,24 @@ | ||
x-react-volumes: &react-volumes | ||
- ./:/opt/app | ||
|
||
services: | ||
front: | ||
container_name: reactapp | ||
image: node:20 | ||
hostname: front | ||
profiles: | ||
- dev | ||
volumes: *react-volumes | ||
tty: true | ||
stdin_open: true # without this node doesn't start | ||
working_dir: /opt/app | ||
ports: | ||
- 3000:3000 # use by react | ||
- 5173:5173 # use by vite | ||
env_file: ".env-compose" | ||
environment: | ||
WATCHPACK_POLLING: true | ||
FAST_REFRESH: false | ||
HTTP_PROXY: ${HTTP_PROXY} | ||
HTTPS_PROXY: ${HTTPS_PROXY} | ||
NO_PROXY: ${NO_PROXY} |
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