docker compose up -d --build
Intertidal Frontend will be available at http://localhost:8080/
Intertidal Admin will be available at http://localhost:8080/admin/
# Bootstrap
docker exec -it intertidal_app python manage.py loaddata admin_interface_theme_bootstrap.json
# Django
docker exec -it intertidal_app python manage.py loaddata admin_interface_theme_django.json
# Foundation
docker exec -it intertidal_app python manage.py loaddata admin_interface_theme_foundation.json
# U.S. Web Design Standards
docker exec -it intertidal_app python manage.py loaddata admin_interface_theme_uswds.json
docker exec -it intertidal_app python manage.py createsuperuser
Enter username
, email
, and password
as prompted
example:
docker exec -it intertidal_app python manage.py createsuperuser --username="admin" --email="[email protected]"
docker compose up -d
docker compose down
docker compose up -d --build
docker logs -f intertidal_app
docker logs -f intertidal_db
docker logs -f intertidal_mail
http://localhost:8080/
Command line:
docker exec -it intertidal_db mysql -u intertidal -ppassword intertidal
Through a database management tool:
- Host:
127.0.0.1
- Port:
15432
- Username:
intertidal
- Password:
password
http://localhost:8025/
Migrate up to latest
docker exec -it intertidal_app python manage.py migrate
Create new migrations
docker exec -it intertidal_app python manage.py makemigrations
Manage python dependencies in requirements.txt
All packages should be locked to a specific version number if possible (Ex
Django==4.2.7
) Some special packages cannot be locked and should be noted as such (Expsycopg[binary]
)
After making changes, you need to run pip or rebuild the image
docker exec -it intertidal_app pip install -r requirements.txt
# or
docker compose up -d --build
Edit version number in requirements.txt
with new locked version number
Ex
pip==24.0.0
docker exec -it intertidal_app pip install -r requirements.txt
# or
docker compose up -d --build