Skip to content

Commit

Permalink
Fix env vars to docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
Saleciani committed Jun 6, 2022
1 parent 312dfdc commit a5e968c
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 9 deletions.
4 changes: 3 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
**/node_modules
build
build
.env
.env.sample
2 changes: 2 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
REACT_APP_BACKEND_LOCATION=https://logic-staging.tallypeer.com
REACT_APP_API=api/v1
2 changes: 2 additions & 0 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ WORKDIR /app
COPY package.json .
COPY yarn.lock .
RUN yarn install
ENV REACT_APP_BACKEND_LOCATION=https://localhost:3001
ENV REACT_APP_API=api/v1
# Copy app files
COPY . .
# Expose port
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile.prod
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ WORKDIR /app
COPY package.json .
COPY yarn.lock .
RUN yarn install
ENV REACT_APP_BACKEND_LOCATION=https://logic.tallypeer.com
ENV REACT_APP_API=api/v1
# Copy app files
COPY . .
# Expose port
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile.staging
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ WORKDIR /app
COPY package.json .
COPY yarn.lock .
RUN yarn install
ENV REACT_APP_BACKEND_LOCATION=https://logic-staging.tallypeer.com
ENV REACT_APP_API=api/v1
# Copy app files
COPY . .
# Expose port
Expand Down
4 changes: 0 additions & 4 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
version: "3.9"
services:
react:
environment:
REACT_APP_BACKEND_LOCATION: http://localhost:3001
REACT_APP_API: api/v1

container_name: "dework_frontend"
build:
dockerfile: Dockerfile.dev
Expand Down
2 changes: 0 additions & 2 deletions docker-compose.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ services:
react:
image: registry.digitalocean.com/dework/react:latest
environment:
REACT_APP_BACKEND_LOCATION: logic.tallypeer.com
REACT_APP_API: api/v1
VIRTUAL_HOST: tallypeer.com
LETSENCRYPT_HOST: tallypeer.com

Expand Down
2 changes: 0 additions & 2 deletions docker-compose.staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ services:
react:
image: registry.digitalocean.com/dework/react_staging:latest
environment:
REACT_APP_BACKEND_LOCATION: logic-staging.tallypeer.com
REACT_APP_API: api/v1
VIRTUAL_HOST: staging.tallypeer.com
LETSENCRYPT_HOST: staging.tallypeer.com

Expand Down

0 comments on commit a5e968c

Please sign in to comment.