Current Mac Files
This commit is contained in:
38
compose-env-react-hooks-mern/docker-compose.yml
Executable file
38
compose-env-react-hooks-mern/docker-compose.yml
Executable file
@@ -0,0 +1,38 @@
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
app-intro-js:
|
||||
#depends_on:
|
||||
# - app-db
|
||||
image: node:21-alpine3.18
|
||||
container_name: intro-js-react-hooks-mern
|
||||
ports:
|
||||
- 38081:8080
|
||||
- 38083:3000
|
||||
working_dir: /home/node/app
|
||||
volumes:
|
||||
- /Volumes/HDD_MINI/dev_docker/docker_react_hooks_mern/02-intro-javascript:/home/node/app
|
||||
- /Volumes/HDD_MINI/dev_docker/docker_react_hooks_mern/02-intro-javascript/node_modules:/home/node/app/node_modules
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
- WDS_SOCKET_PORT=0
|
||||
#Este comando es para inicializar la app, esta es la mas comun?
|
||||
#si es que estoy usando nodemon - typescript - ts.node
|
||||
command: npm start
|
||||
#Este comando es para inicializar la app con live reload (nodemon)
|
||||
#si es que no trabajo con typescript
|
||||
#command: npm run dev
|
||||
networks:
|
||||
- react-stack
|
||||
app-http:
|
||||
image: httpd:latest
|
||||
container_name: fe-react-hooks-mern
|
||||
volumes:
|
||||
- "/Volumes/HDD_MINI/dev_docker/docker_react_hooks_mern/01-intro-react/:/usr/local/apache2/htdocs/"
|
||||
ports:
|
||||
- 38082:80
|
||||
networks:
|
||||
- react-stack
|
||||
networks:
|
||||
react-stack:
|
||||
driver: bridge
|
||||
Reference in New Issue
Block a user