Added .env access to frontend (+ while dockerized)

This commit is contained in:
Florian Sylvain
2022-12-21 22:37:47 +01:00
parent 4d4116ae98
commit 2047b3f7a4
8 changed files with 37 additions and 23 deletions
+6 -2
View File
@@ -1,6 +1,8 @@
services:
backend:
build: .
build:
context: ./
dockerfile: ./Dockerfile.backend
image: gohcms-backend
env_file:
- .env
@@ -9,7 +11,9 @@ services:
networks:
- back-net
frontend:
build: web/admin-gui/.
build:
context: ./
dockerfile: ./Dockerfile.frontend
image: gohcms-frontend
env_file:
- .env