mirror of https://github.com/snachodog/mybuddy.git
Add example Docker Compose file for SQLite-based deployment (#145)
This commit is contained in:
parent
3407afbf1b
commit
172ef58fcf
|
@ -111,6 +111,9 @@ The app should now be locally available at
|
||||||
[Docker's "Get Started" documentation](https://docs.docker.com/get-started/)
|
[Docker's "Get Started" documentation](https://docs.docker.com/get-started/)
|
||||||
for detailed information about deployment methods with Docker.
|
for detailed information about deployment methods with Docker.
|
||||||
|
|
||||||
|
A secondary example file `docker-compose.example.sqlite.yml` is also available
|
||||||
|
for a simpler SQLite-based deployment (the default example users PostgreSQL).
|
||||||
|
|
||||||
### Heroku
|
### Heroku
|
||||||
|
|
||||||
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)
|
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)
|
||||||
|
|
|
@ -0,0 +1,21 @@
|
||||||
|
version: "3.7"
|
||||||
|
services:
|
||||||
|
app:
|
||||||
|
image: babybuddy/babybuddy
|
||||||
|
# See README.md#configuration for other environment configuration options.
|
||||||
|
environment:
|
||||||
|
- ALLOWED_HOSTS=
|
||||||
|
- DJANGO_SETTINGS_MODULE=babybuddy.settings.base
|
||||||
|
- SECRET_KEY=
|
||||||
|
- TIME_ZONE=
|
||||||
|
- POSTGRES_PASSWORD=postgres
|
||||||
|
- DEBUG=False # Turn to False in production
|
||||||
|
volumes:
|
||||||
|
- data:/app/data:rw
|
||||||
|
- media:/app/media:rw
|
||||||
|
command: bash -c 'python manage.py migrate --noinput && python manage.py createcachetable && gunicorn babybuddy.wsgi -b :8000 --log-level=info'
|
||||||
|
ports:
|
||||||
|
- "8000:8000"
|
||||||
|
volumes:
|
||||||
|
data: {}
|
||||||
|
media: {}
|
Loading…
Reference in New Issue