Skip to content

Instantly share code, notes, and snippets.

@inovizz
Created July 27, 2020 10:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save inovizz/39e6b4b922024dc132a802ba4924207d to your computer and use it in GitHub Desktop.
Save inovizz/39e6b4b922024dc132a802ba4924207d to your computer and use it in GitHub Desktop.
version: '3.8'
services:
redis:
image: redis:latest
networks:
- main
ports:
- "6379:6379"
app:
build:
context: ./flask_api/
dockerfile: Dockerfile
image: inovizz/flask_service
depends_on:
- redis
- celery_service
ports:
- "5001:5001"
links:
- redis:redis
networks:
- main
celery_service:
build:
context: ./taskqueue/
dockerfile: Dockerfile
image: inovizz/celery_service
depends_on:
- redis
links:
- redis:redis
networks:
- main
networks:
main:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment