55 lines
1.3 KiB
YAML
55 lines
1.3 KiB
YAML
|
version: '3.3'
|
||
|
|
||
|
services:
|
||
|
redis:
|
||
|
image: redis
|
||
|
volumes:
|
||
|
- /redis/data:/bitnami/redis/data
|
||
|
environment:
|
||
|
- REDIS_PASSWORD=CHANGE_ME
|
||
|
|
||
|
konova:
|
||
|
external_links:
|
||
|
- postgis:db
|
||
|
build: .
|
||
|
container_name: "konova-docker"
|
||
|
command: python manage.py runserver 0.0.0.0:8000
|
||
|
volumes:
|
||
|
- .:/konova
|
||
|
ports:
|
||
|
- "8001:8000"
|
||
|
depends_on:
|
||
|
- redis
|
||
|
environment:
|
||
|
- POSTGRES_NAME=konova
|
||
|
- POSTGRES_PORT=5432
|
||
|
- POSTGRES_PASSWORD=michel
|
||
|
- POSTGRES_USER=konova
|
||
|
- POSTGRES_HOST=db
|
||
|
- REDIS_HOST=redis
|
||
|
|
||
|
# To provide a celery worker instance, we need to add the celery worker as an own service
|
||
|
celery_worker:
|
||
|
external_links:
|
||
|
- postgis:db
|
||
|
build: .
|
||
|
container_name: "konova-worker-docker"
|
||
|
command: celery -A konova worker -l INFO
|
||
|
volumes:
|
||
|
- .:/konova
|
||
|
depends_on:
|
||
|
- konova
|
||
|
environment:
|
||
|
- POSTGRES_NAME=konova
|
||
|
- POSTGRES_PORT=5432
|
||
|
- POSTGRES_PASSWORD=michel
|
||
|
- POSTGRES_USER=konova
|
||
|
- POSTGRES_HOST=db
|
||
|
- REDIS_HOST=redis
|
||
|
|
||
|
# 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
|