Skip to content

Commit 91f7dc8

Browse files
committed
updated volume and readme
1 parent 822266f commit 91f7dc8

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,11 @@ Featuring:
88
- Python 3.5
99

1010
Blog post -> https://realpython.com/blog/python/django-development-with-docker-compose-and-machine/
11+
12+
### OS X Instructions
13+
14+
1. Start new machine - `docker-machine create -d virtualbox dev;`
15+
1. Build images - `docker-compose build`
16+
1. Start services - `docker-compose up -d`
17+
1. Create migrations - `docker-compose run web /usr/local/bin/python manage.py migrate`
18+
1. Grab IP - `docker-machine ip dev` - and view in your browser

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ web:
77
- postgres:postgres
88
- redis:redis
99
volumes:
10-
- .web:/usr/src/app
10+
- /usr/src/app/static
1111
env_file: .env
1212
command: /usr/local/bin/gunicorn docker_django.wsgi:application -w 2 -b :8000 --reload
1313

0 commit comments

Comments
 (0)