mirror of
https://github.com/umap-project/umap.git
synced 2025-05-04 13:41:49 +02:00

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)
22 lines
494 B
YAML
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
|