Created
October 3, 2021 16:57
-
-
Save ghaffaru/f472d87418507055ce2a791f0f81f76a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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