Skip to content

Instantly share code, notes, and snippets.

@ghaffaru
Created October 3, 2021 16:57
Show Gist options
  • Select an option

  • Save ghaffaru/f472d87418507055ce2a791f0f81f76a to your computer and use it in GitHub Desktop.

Select an option

Save ghaffaru/f472d87418507055ce2a791f0f81f76a to your computer and use it in GitHub Desktop.
version: '3.2'
services:
worker:
build: .
restart: "no"
command: bash -c "cd fiscoins && celery -A fiscoins worker --loglevel=info"
volumes:
- .:/code
depends_on:
- broker
broker:
image: rabbitmq:3.6
ports:
- "5672:5672"
- "15672:15672"
db:
image: postgres
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
- POSTGRES_DB=fiscoin
- POSTGRES_USER=ghaff
- POSTGRES_PASSWORD=engineer
ports:
- "5433:5432"
web:
build: .
command: python fiscoins/manage.py runserver 0.0.0.0:8000
volumes:
- .:/code
ports:
- "8000:8000"
depends_on:
- db
- broker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment