Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

US-16 - preparacao do docker para auto deploy, faltando configuracao … #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ COPY --from=builder /app/dist/sol-app-frontend /usr/share/nginx/html
# Copiar configuração personalizada do Nginx (opcional)
# COPY nginx.conf /etc/nginx/conf.d/default.conf

# Expor a porta 80
EXPOSE 80
# Expor a porta 4200
EXPOSE 4200

# Comando para iniciar o Nginx
CMD ["nginx", "-g", "daemon off;"]
CMD ["npm", "start"]
# CMD ["nginx", "-g", "daemon off;"]
25 changes: 25 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
version: '3'
services:
frontend:
build:
context: ./frontend
ports:
- "4200:4200"
volumes:
- ./frontend:/app
networks:
- sol-network

api:
build:
context: ./api
ports:
- "3000:3000"
volumes:
- ./api:/app
networks:
- sol-network

networks:
sol-network:
driver: bridge