mirror of
				https://github.com/cookiecutter/cookiecutter-django.git
				synced 2025-11-04 01:47:28 +03:00 
			
		
		
		
	Enhances #360
This commit is contained in:
		
							parent
							
								
									e23e9ceb7e
								
							
						
					
					
						commit
						faa534b3c1
					
				| 
						 | 
				
			
			@ -6,7 +6,7 @@ FROM python:2.7
 | 
			
		|||
ENV PYTHONUNBUFFERED 1
 | 
			
		||||
 | 
			
		||||
# Requirements have to be pulled and installed here, otherwise caching won't work
 | 
			
		||||
ADD ./requirements/production.txt /requirements/production.txt
 | 
			
		||||
ADD ./requirements /requirements
 | 
			
		||||
 | 
			
		||||
RUN pip install -r /requirements/production.txt
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -6,7 +6,7 @@ FROM python:2.7
 | 
			
		|||
ENV PYTHONUNBUFFERED 1
 | 
			
		||||
 | 
			
		||||
# Requirements have to be pulled and installed here, otherwise caching won't work
 | 
			
		||||
ADD ./requirements/local.txt /requirements/local.txt
 | 
			
		||||
ADD ./requirements /requirements
 | 
			
		||||
 | 
			
		||||
RUN pip install -r /requirements/local.txt
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,4 +1,3 @@
 | 
			
		|||
dockerfile: Dockerfile-dev
 | 
			
		||||
 | 
			
		||||
postgres:
 | 
			
		||||
  image: postgres
 | 
			
		||||
| 
						 | 
				
			
			@ -8,6 +7,7 @@ postgres:
 | 
			
		|||
    - /data/{{cookiecutter.repo_name}}/postgres:/var/lib/postgresql/data
 | 
			
		||||
 | 
			
		||||
django:
 | 
			
		||||
  dockerfile: Dockerfile-dev
 | 
			
		||||
  build: .
 | 
			
		||||
  command: python /app/manage.py runserver_plus 0.0.0.0:8000
 | 
			
		||||
  volumes:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user