Skip to content

Commit

Permalink
fix environment valorisation in docker-compose file
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin POCHAT authored and Benjamin POCHAT committed Feb 22, 2021
1 parent e078008 commit 4636b60
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
5 changes: 3 additions & 2 deletions docker-compose-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,18 @@ services:
- [email protected]
- localeat_smtp_password=localeat


ui:
build:
context: "."
dockerfile: ./ui/Dockerfile
args:
- localeat_environment_type=staging
image: benjaminpochat/localeat-ui-staging:${DOCKER_IMAGE_TAG:-latest}
networks:
- hostnet
depends_on:
- core
environment:
- localeat_environment_type=staging

networks:
hostnet:
Expand Down
12 changes: 6 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@ services:
build:
context: "."
dockerfile: ./core/Dockerfile
args:
- localeat_datasource_url=jdbc:postgresql://localhost:5432/localeat
- localeat_datasource_username=localeat
- localeat_datasource_password=localeat
- [email protected]
- localeat_smtp_password=localeat
image: benjaminpochat/localeat-core:${DOCKER_IMAGE_TAG:-latest}
networks:
- hostnet
depends_on:
- database
environment:
- localeat_datasource_url=jdbc:postgresql://localhost:5432/localeat
- localeat_datasource_username=localeat
- localeat_datasource_password=localeat
- [email protected]
- localeat_smtp_password=localeat

ui:
build:
Expand Down
3 changes: 3 additions & 0 deletions ui/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# STEP 1 build static website
FROM node:14.4-alpine as node

ARG localeat_environment_type

RUN apk update
WORKDIR /app
COPY ./ui .
Expand Down

0 comments on commit 4636b60

Please sign in to comment.