This docker-compose can replace the docker-compose in geomag-stacks. This docker-compose uses the existing
This workflow can replace the docker-compose in geomag-stacks. This docker-compose uses the existing Dockerfile to create a `localdev-web-1` container, instead of pulling down the latest geomag-algorithms image. However, it is initializing the mysql database the same way it is done in geomag-stacks. This docker-compose is also creating a mysql container called `localdev-database-1` an edge container called `localdev-edge-1` using the geomag-edge Dockerfile in geomag-stacks. The geomag-edge folder was not moved out of geomag-stacks out of an abudance of caution to prevent internal information from being revealed.
Dockerfile to create a `localdev-web-1` container. Ideally, this will more closely mimic what is happening in
production. This docker-compose is also creating a mysql container called `localdev-database-1` and initializing the metadata and session tables. It is also creating a `localdev-edge-1` container using the geomag-edge Dockerfile in geomag-stacks.
The geomag-edge folder was not moved out of geomag-stacks out of an abudance of caution to prevent internal information
from being revealed.
## Prerequisites
## Prerequisites
For mac development:
For mac development:
...
@@ -27,11 +23,16 @@ export MYSQL_ROOT_PASSWORD=""
...
@@ -27,11 +23,16 @@ export MYSQL_ROOT_PASSWORD=""
```
```
## Use
## Use
To simply start build and run all the containers, make sure you are in the /localdev directory and run the following command.
To simply start build and run all the containers, make sure you are in the /localdev directory and run the following command. This includes a reload command for the web container. It will restart the web container when changes are made locally.
```
```
docker-compose up
docker-compose up
```
```
If you're not developing locally, use the following command to run the containers in the background. Reload will not work this way.