Add example Docker Compose file for SQLite-based deployment (#145)

This commit is contained in:
Christopher C. Wells 2020-06-21 08:20:40 -07:00
parent 3407afbf1b
commit 172ef58fcf
2 changed files with 24 additions and 0 deletions

View File

@ -111,6 +111,9 @@ The app should now be locally available at
[Docker's "Get Started" documentation](https://docs.docker.com/get-started/)
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
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)

View File

@ -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: {}