Skip to content

Commit

Permalink
Added mising yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
vikashkum05 committed Jul 22, 2024
1 parent d90e916 commit 9c83b4c
Showing 1 changed file with 96 additions and 0 deletions.
96 changes: 96 additions & 0 deletions docker/docker-compose.dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
version: "3"

services:
db:
container_name: proco_dev_db
build:
context: ..
dockerfile: docker/Dockerfile-db15
environment:
POSTGRES_USER: test
POSTGRES_PASSWORD: test
POSTGRES_DB: proco
volumes:
- "../postgres_data:/postgres_data"
ports:
- "7432:5432"

redis:
restart: always
image: redis:latest
expose:
- "6379"

# redisinsight:
# image: redislabs/redisinsight:latest
# ports:
# - '8001:8001'

# omnidb:
# image: omnidbteam/omnidb:latest
# container_name: omnidb
# ports:
# - '9001:9001'

backend:
container_name: proco_dev_backend
build:
context: ..
dockerfile: docker/Dockerfile-dev
command: bash -c "sleep 10 && pipenv run python manage.py migrate && pipenv run python manage.py runserver 0.0.0.0:8000"
ports:
- "8000:8000"
environment:
DJANGO_SETTINGS_MODULE: config.settings.dev
DATABASE_URL: postgis://test:test@db/proco
READ_ONLY_DATABASE_URL: postgis://test:test@db/proco
# CELERY_BROKER_URL: amqp://rabbitmq:rabbitmq@rabbitmq/
REDIS_URL: redis://redis:6379/0
depends_on:
- db
# - rabbitmq
- redis
volumes:
- "..:/code"

# rabbitmq:
# image: rabbitmq:3.8-alpine
# environment:
# RABBITMQ_DEFAULT_USER: rabbitmq
# RABBITMQ_DEFAULT_PASS: rabbitmq

celery_beat:
container_name: proco_dev_beat
build:
context: ..
dockerfile: docker/Dockerfile-dev
command: bash -c "sleep 10 && pipenv run celery --app=proco.taskapp beat --loglevel=DEBUG"
environment:
DJANGO_SETTINGS_MODULE: config.settings.dev
DATABASE_URL: postgis://test:test@db/proco
# CELERY_BROKER_URL: amqp://rabbitmq:rabbitmq@rabbitmq/
REDIS_URL: redis://redis:6379/0
volumes:
- "..:/code"
depends_on:
- db
# - rabbitmq
- redis

celery_worker:
container_name: proco_dev_celeryd
build:
context: ..
dockerfile: docker/Dockerfile-dev
command: bash -c "sleep 10 && pipenv run celery --app=proco.taskapp worker --loglevel=DEBUG --time-limit=300 --concurrency=2 --soft-time-limit=300"
environment:
DJANGO_SETTINGS_MODULE: config.settings.dev
DATABASE_URL: postgis://test:test@db/proco
# CELERY_BROKER_URL: amqp://rabbitmq:rabbitmq@rabbitmq/
REDIS_URL: redis://redis:6379/0
volumes:
- "..:/code"
depends_on:
- db
# - rabbitmq
- redis

0 comments on commit 9c83b4c

Please sign in to comment.