Skip to content
Snippets Groups Projects
Commit 05c8ad65 authored by Hobbs, Alexandra (Contractor)'s avatar Hobbs, Alexandra (Contractor)
Browse files

trying to add reload

parent 85bf88e5
No related branches found
No related tags found
1 merge request!352Dockerize
...@@ -25,6 +25,7 @@ services: ...@@ -25,6 +25,7 @@ services:
build: build:
context: ../. context: ../.
dockerfile: ./Dockerfile dockerfile: ./Dockerfile
command: bash -c "cd /data && python create_db.py && python test_metadata.py && uvicorn --reload geomagio.api:app --host 0.0.0.0 --workers 2"
ports: ports:
- '8000:8000' - '8000:8000'
extra_hosts: extra_hosts:
...@@ -37,5 +38,7 @@ services: ...@@ -37,5 +38,7 @@ services:
- OPENID_METADATA_URL=$OPENID_METADATA_URL - OPENID_METADATA_URL=$OPENID_METADATA_URL
- SECRET_KEY=$SECRET_KEY - SECRET_KEY=$SECRET_KEY
- SECRET_SALT=$SECRET_SALT - SECRET_SALT=$SECRET_SALT
- WEBSERVICE=true - WEBSERVICE=false
volumes:
- ../.:/data
restart: always restart: always
...@@ -52,5 +52,5 @@ and remove the images. ...@@ -52,5 +52,5 @@ and remove the images.
`docker exec -it {CONTAINER ID} /bin/bash` execs into the container. This can be helpful for exploring the mysql db. After you exec into the mysql container, run `mysql -u root -p` in the container. Input the password you set to MYSQL_ROOT_PASSWORD. Now `docker exec -it {CONTAINER ID} /bin/bash` execs into the container. This can be helpful for exploring the mysql db. After you exec into the mysql container, run `mysql -u root -p` in the container. Input the password you set to MYSQL_ROOT_PASSWORD. Now
you can use SQL to explore the db. you can use SQL to explore the db.
## Running the CLI locally ## Helpful Tips
Exec into the `localdev-web-1` container using Sometimes the mysql container exits immediately with code 139 due to insufficient memory. Restarting colima resolves this issue.
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment