From 3b0520d98ab777df83b7f848668bf25f5fb36940 Mon Sep 17 00:00:00 2001 From: leandrofars Date: Sun, 31 Mar 2024 16:21:38 -0300 Subject: [PATCH] build: docker compose add frontend new image --- deploy/compose/.env.frontend | 0 deploy/compose/docker-compose.yaml | 9 +++------ frontend/.env | 4 ++-- frontend/.gitignore | 1 - 4 files changed, 5 insertions(+), 9 deletions(-) create mode 100644 deploy/compose/.env.frontend diff --git a/deploy/compose/.env.frontend b/deploy/compose/.env.frontend new file mode 100644 index 0000000..e69de29 diff --git a/deploy/compose/docker-compose.yaml b/deploy/compose/docker-compose.yaml index f966462..44ca59b 100644 --- a/deploy/compose/docker-compose.yaml +++ b/deploy/compose/docker-compose.yaml @@ -156,13 +156,10 @@ services: #/* -------------------------------- Frontend -------------------------------- */ frontend: - image: 'node:16.20.2' + image: 'oktopusp/frontend' container_name: frontend - tty: true - stdin_open: true - volumes: - - ../../frontend:/app/ - command: bash -c "cd /app/ && npm i && npm run dev" + env_file: + - .env.frontend ports: - 3000:3000 networks: diff --git a/frontend/.env b/frontend/.env index 679a4b3..32e4aa9 100644 --- a/frontend/.env +++ b/frontend/.env @@ -6,8 +6,8 @@ NEXT_PUBLIC_WS_ENPOINT="http://localhost:5000/" # -------------------------- Production Environment -------------------------- # -#NEXT_PUBLIC_REST_ENPOINT="https://oktopustr369.com/api" -#NEXT_PUBLIC_WS_ENPOINT="https://oktopustr369.com/" +#NEXT_PUBLIC_REST_ENPOINT="https://demo.oktopus.app.br/api" +#NEXT_PUBLIC_WS_ENPOINT="https://demo.oktopus.app.br/" # ---------------------------------------------------------------------------- # # ---------------------------- Mocked Environment ---------------------------- # diff --git a/frontend/.gitignore b/frontend/.gitignore index d7d9eba..656fd8a 100644 --- a/frontend/.gitignore +++ b/frontend/.gitignore @@ -9,7 +9,6 @@ /coverage # production -/build out .next