Compare commits
3 Commits
4cb30fca86
...
92f5f19f03
Author | SHA1 | Date | |
---|---|---|---|
92f5f19f03 | |||
9da99c6e00 | |||
b6fbc0e71d |
@ -21,12 +21,14 @@ RUN set -eux && \
|
||||
apt-get autoremove --purge -y && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN sed -i 's/must_revalidate/no_cache/' /srv/umap/venv/lib/python3.9/site-packages/umap/urls.py
|
||||
|
||||
ADD umap.conf /etc/umap/umap.conf
|
||||
ADD uwsgi.ini /srv/umap/uwsgi.ini
|
||||
ADD drop-privileges.sh /srv/umap/drop-privileges.sh
|
||||
ADD docker-entrypoint.sh /srv/umap/docker-entrypoint.sh
|
||||
|
||||
EXPOSE 8000/tcp
|
||||
EXPOSE 80/tcp
|
||||
|
||||
# Add Tini
|
||||
ENV TINI_VERSION v0.14.0
|
||||
|
@ -1,31 +1,31 @@
|
||||
version: '3'
|
||||
services:
|
||||
db:
|
||||
postgis:
|
||||
image: postgis/postgis:12-3.3
|
||||
environment:
|
||||
- POSTGRES_HOST_AUTH_METHOD=trust
|
||||
volumes:
|
||||
- db:/var/lib/postgresql/data
|
||||
- postgis:/var/lib/postgresql/data
|
||||
|
||||
redis:
|
||||
image: redis:latest
|
||||
|
||||
app:
|
||||
umap:
|
||||
image: pommib/umap:1.2.3
|
||||
ports:
|
||||
- "8000:8000"
|
||||
- "8000:80"
|
||||
environment:
|
||||
- DATABASE_URL=postgis://postgres@db/postgres
|
||||
- DATABASE_URL=postgis://postgres@postgis/postgres
|
||||
- REDIS_URL=redis://redis:6379/0
|
||||
- SECRET_KEY=some-long-and-weirdly-unrandom-secret-key
|
||||
- ALLOWED_HOSTS=*
|
||||
- SITE_URL=https://umap.somewhere.nl/
|
||||
- LEAFLET_STORAGE_ALLOW_ANONYMOUS=True
|
||||
depends_on:
|
||||
- db
|
||||
- postgis
|
||||
- redis
|
||||
# command: "tail -F anything"
|
||||
|
||||
volumes:
|
||||
db:
|
||||
postgis:
|
||||
uploads:
|
||||
|
Loading…
Reference in New Issue
Block a user