umap/docker-compose.yml
Jannis Leidel 47bcacaa62
Added Docker setup.
This adds:

- a Dockerfile
- a Docker compose file for easy testing
- a Travis CI setup
  - so that it can build a Docker image and push to Docker Hub automatically
  - it does that on every Git tag as well and push a equally tagged version to Docker Hub
- extends the Makefile to add some helper tasks for docker (e.g. make docker-test)
2017-02-20 16:32:41 +01:00

22 lines
494 B
YAML

version: '2'
services:
db:
image: mdillon/postgis:9.6
redis:
image: redis:latest
app:
build: .
environment:
- DATABASE_URL=postgis://postgres@db/postgres
- REDIS_URL=redis://redis:6379/0
- SECRET_KEY=some-long-and-weirdly-unrandom-secret-key
- ALLOWED_HOSTS=*
- SITE_URL=http://localhost:8000/
- LEAFLET_STORAGE_ALLOW_ANONYMOUS=True
volumes:
- $PWD:/srv/umap
ports:
- "8000:8000"
links:
- db
- redis