mirror of
https://github.com/umap-project/umap.git
synced 2025-05-04 21:51:50 +02:00

* Added docker support * Remove erroring line for man * Requirements.txt has been removed * Prevent not displaying error * Use latest Node JS LTS * Removed suspended phantomjs and allows for arm64 * Copy statement didn't work in build container * Install tini with package manager to allow arm64 * Closes #1: Add docker environment for development and production * Fix --------- Co-authored-by: Remco Schoen <remco@dieselwalm.nl>
28 lines
714 B
YAML
28 lines
714 B
YAML
version: '2'
|
|
services:
|
|
postgres:
|
|
image: postgis/postgis:14-3.2
|
|
environment:
|
|
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
|
|
POSTGRES_USER: ${DATABASE_USER}
|
|
volumes:
|
|
- ./data:/var/lib/postgresql/data
|
|
redis:
|
|
image: redis:latest
|
|
app:
|
|
build:
|
|
context: .
|
|
target: app_python
|
|
environment:
|
|
DATABASE_URL: postgis://${DATABASE_USER}:${DATABASE_PASSWORD}@postgres/postgres
|
|
REDIS_URL: redis://redis:6379/0
|
|
SECRET_KEY: ${SECRET_KEY}
|
|
ALLOWED_HOSTS: ${ALLOWED_HOSTS:-*}
|
|
SITE_URL: ${SITE_URL}
|
|
LEAFLET_STORAGE_ALLOW_ANONYMOUS: true
|
|
depends_on:
|
|
- postgres
|
|
volumes:
|
|
- ./uploads:/srv/app/uploads
|
|
ports:
|
|
- "8000:8000"
|