Current Mac Files

This commit is contained in:
2024-11-26 14:37:36 -03:00
parent 6df5ccdf73
commit cfbca92b59
31 changed files with 1023 additions and 0 deletions

View 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