Improve Docker docs
This commit is contained in:
		
							parent
							
								
									c63bccaacc
								
							
						
					
					
						commit
						25906c7697
					
				
					 1 changed files with 12 additions and 2 deletions
				
			
		|  | @ -2,12 +2,22 @@ | ||||||
| # docker build --tag sfconservancy.org-bookworm --file Dockerfile-debian-bookworm . | # docker build --tag sfconservancy.org-bookworm --file Dockerfile-debian-bookworm . | ||||||
| # | # | ||||||
| # To run the website, first ensure you have a | # To run the website, first ensure you have a | ||||||
| # "conservancy/djangocommonsettings.py" file, with an appropriate database path. Then run: | # "conservancy/djangocommonsettings.py" file, with an appropriate database path. | ||||||
| # | # | ||||||
| # run --tty --interactive --rm=true --publish=8000:8000 \ | # [FIRST RUN ONLY] If you don't have an existing copy of the database, run: | ||||||
|  | # touch conservancy-website.sqlite3 | ||||||
|  | # | ||||||
|  | # Start the application with: | ||||||
|  | # docker run --tty --interactive --rm=true --publish=8000:8000 \ | ||||||
| #   --mount type=bind,source=$(pwd),target=/var/www/website \ | #   --mount type=bind,source=$(pwd),target=/var/www/website \ | ||||||
| #   --mount type=bind,source=$(pwd)/conservancy-website.sqlite3,target=/var/lib/www/database/conservancy-website.sqlite3 \ | #   --mount type=bind,source=$(pwd)/conservancy-website.sqlite3,target=/var/lib/www/database/conservancy-website.sqlite3 \ | ||||||
| #   sfconservancy.org-bookworm:latest | #   sfconservancy.org-bookworm:latest | ||||||
|  | # | ||||||
|  | # [FIRST RUN ONLY] In a separate terminal, run `docker ps` noting "CONTAINER ID". | ||||||
|  | # Then run the database migrations with: | ||||||
|  | # docker exec -it [CONTAINER ID] /usr/bin/python3 manage.py migrate | ||||||
|  | # | ||||||
|  | # Visit the site at http://127.0.0.1:8000 | ||||||
| 
 | 
 | ||||||
| ARG DEBIAN_FRONTEND=noninteractive | ARG DEBIAN_FRONTEND=noninteractive | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue