From 1c8ca53e458776b25bc21e01b619bcd455433942 Mon Sep 17 00:00:00 2001 From: orosmatthew Date: Thu, 7 Sep 2023 13:19:10 -0400 Subject: [PATCH] [sandbox] Use env file for docker compose --- sandbox/.dockerignore | 3 +++ sandbox/.env.example | 2 ++ sandbox/docker-compose.yml | 4 ++-- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 sandbox/.dockerignore create mode 100644 sandbox/.env.example diff --git a/sandbox/.dockerignore b/sandbox/.dockerignore new file mode 100644 index 0000000..c27e9ba --- /dev/null +++ b/sandbox/.dockerignore @@ -0,0 +1,3 @@ +node_modules +build +.env \ No newline at end of file diff --git a/sandbox/.env.example b/sandbox/.env.example new file mode 100644 index 0000000..3f8a0de --- /dev/null +++ b/sandbox/.env.example @@ -0,0 +1,2 @@ +ADMIN_URL="http://localhost:5173" +REPO_URL="http://localhost:7006" \ No newline at end of file diff --git a/sandbox/docker-compose.yml b/sandbox/docker-compose.yml index f0713e3..c2791b6 100644 --- a/sandbox/docker-compose.yml +++ b/sandbox/docker-compose.yml @@ -3,6 +3,6 @@ services: sandbox: build: . environment: - - ADMIN_URL=http://localhost:5173 - - REPO_URL=http://localhost:7006 + - ADMIN_URL=${ADMIN_URL} + - REPO_URL=${REPO_URL} network_mode: 'host'