2022-02-04 15:17:08 +01:00
|
|
|
version: '3.3'
|
|
|
|
|
|
|
|
services:
|
2022-04-25 16:07:38 +02:00
|
|
|
#redis:
|
|
|
|
# image: redis
|
|
|
|
# container_name: "konova-redis-cache"
|
|
|
|
# volumes:
|
|
|
|
# - /redis/data:/bitnami/redis/data
|
|
|
|
# environment:
|
|
|
|
# - REDIS_PASSWORD=CHANGE_ME
|
2022-02-04 15:17:08 +01:00
|
|
|
|
|
|
|
konova:
|
|
|
|
external_links:
|
|
|
|
- postgis:db
|
|
|
|
- arnova-nginx-server:arnova
|
|
|
|
build: .
|
|
|
|
container_name: "konova-docker"
|
2022-04-25 16:07:38 +02:00
|
|
|
command: sh -c 'service nginx start && service redis-server start && celery -A konova worker --detach && gunicorn konova.wsgi:application --bind 0.0.0.0:8000'
|
2022-03-09 14:02:25 +01:00
|
|
|
restart: always
|
2022-02-04 15:17:08 +01:00
|
|
|
volumes:
|
|
|
|
- .:/konova
|
2022-03-09 14:02:25 +01:00
|
|
|
- /path/to/host/folder:/konova_uploaded_files
|
2022-02-04 15:17:08 +01:00
|
|
|
- static_file_volume:/konova/static # Point to the volume for static files. Shared with nginx service
|
2022-04-25 16:07:38 +02:00
|
|
|
ports:
|
|
|
|
- "1337:80"
|
|
|
|
#depends_on:
|
|
|
|
# - redis
|
2022-02-04 15:17:08 +01:00
|
|
|
environment:
|
|
|
|
- POSTGRES_NAME=konova
|
|
|
|
- POSTGRES_PORT=5432
|
|
|
|
- POSTGRES_PASSWORD=CHANGE_ME
|
|
|
|
- POSTGRES_USER=konova
|
|
|
|
- POSTGRES_HOST=db
|
2022-04-25 16:07:38 +02:00
|
|
|
- REDIS_HOST=localhost
|
2022-02-04 15:17:08 +01:00
|
|
|
- SSO_HOST=CHANGE_ME_TO_SSO_HOST_URL
|
|
|
|
- SMTP_HOST=172.17.0.1
|
|
|
|
- SMTP_PORT=25
|
|
|
|
- SMTP_REAL_REPLY_MAIL=ksp-servicestelle@sgdnord.rlp.de
|
|
|
|
|
2022-04-25 16:07:38 +02:00
|
|
|
#nginx:
|
|
|
|
# build: ./nginx
|
|
|
|
# container_name: "konova-nginx-server"
|
|
|
|
# ports:
|
|
|
|
# - "1337:80"
|
|
|
|
# depends_on:
|
|
|
|
# - konova
|
|
|
|
# volumes:
|
|
|
|
# - static_file_volume:/konova/static # Point to the volume for static files. Shared with konova service
|
2022-02-04 15:17:08 +01:00
|
|
|
|
|
|
|
# Instead of an own, new network, we need to connect to the existing one, which is provided by the postgis container
|
|
|
|
# NOTE: THIS NETWORK MUST EXIST
|
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
external:
|
|
|
|
name: postgis_nat_it_backend
|
|
|
|
|
|
|
|
volumes:
|
2022-03-09 14:02:25 +01:00
|
|
|
static_file_volume:
|