Created
May 20, 2020 17:10
-
-
Save Hassanzadeh-sd/eeca9fda9eb4d2163c5fe9028ffca6fb 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.7" | |
volumes: | |
psql_data: | |
networks: | |
wize_project: | |
services: | |
web: | |
build: | |
dockerfile: ./.build/Dockerfile.dev | |
context: . | |
restart: unless-stopped | |
image: wize_python_slim:dev | |
volumes: | |
- ./:/opt/app | |
ports: | |
- 8000:8000 | |
networks: | |
- wize_project | |
depends_on: | |
- db | |
db: | |
restart: unless-stopped | |
image: postgres:12.2-alpine | |
environment: | |
- POSTGRES_USER=wize_project_usr | |
- POSTGRES_PASSWORD=Y]p2u)856hb2G(9 | |
- POSTGRES_DB=wize_project_db | |
command: ["postgres", "-c", "log_statement=all"] | |
volumes: | |
- psql_data:/var/lib/postgresql/data:z | |
networks: | |
- wize_project | |
ports: | |
- 8012:5432 | |
broker: | |
image: rabbitmq:latest | |
hostname: broker | |
environment: | |
- RABBITMQ_DEFAULT_USER=wize_broker_usr | |
- RABBITMQ_DEFAULT_PASS=PascSDAErTv70 | |
ports: | |
- "5672:5672" | |
networks: | |
- wize_project | |
celery-worker: | |
build: | |
dockerfile: ./.build/Dockerfile.dev | |
context: . | |
restart: "no" | |
command: celery -A _conf worker -l info | |
volumes: | |
- ./:/opt/app | |
depends_on: | |
- broker | |
- web | |
networks: | |
- wize_project | |
celery-beat: | |
build: | |
dockerfile: ./.build/Dockerfile.dev | |
context: . | |
command: celery -A _conf beat -l info | |
volumes: | |
- ./:/opt/app | |
depends_on: | |
- broker | |
- web | |
networks: | |
- wize_project | |
flower: | |
image: mher/flower | |
command: ["flower", "--broker=amqp://wize_broker_usr:PascSDAErTv70@broker", "--port=5555"] | |
volumes: | |
- ./:/opt/app | |
ports: | |
- 5555:5555 | |
depends_on: | |
- broker | |
- web | |
networks: | |
- wize_project |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment