Skip to content

Commit 81838d9

Browse files
committed
environment variables for docker compose
1 parent bccb500 commit 81838d9

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,8 @@ build/
3737
### Mac OS ###
3838
.DS_Store
3939

40+
### Environment ###
41+
prod.env
42+
4043
### Other ###
4144
notes.md

dev.env

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
BASE_URL=localhost
2+
BASE_URL_PORT=7001

docker-compose.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ services:
3434
build:
3535
context: .
3636
args:
37-
BASE_URL: "localhost"
38-
BASE_URL_PORT: "7001"
37+
BASE_URL: $BASE_URL
38+
BASE_URL_PORT: $BASE_URL_PORT
3939
dockerfile: ./microservices/playground-ws/Dockerfile
4040
ports:
4141
- "7001:7001"

0 commit comments

Comments
 (0)