Guest User

Untitled

a guest
May 3rd, 2017
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. version: '2'
  2. services:
  3. # PostgreSQL database
  4. db:
  5. image: postgres:9.4
  6. hostname: db
  7. environment:
  8. - POSTGRES_USER=postgres
  9. - POSTGRES_PASSWORD=postgres
  10. - POSTGRES_DB=postgres
  11. ports:
  12. - "5432:5432"
  13.  
  14. # here my database is on AWS RDS
  15. # don't know how to link here
  16.  
  17.  
  18.  
  19. sqs:
  20. # don't know what to write here
  21. # not sure if it is require here
  22.  
  23. # Django web server
  24. web:
  25. build:
  26. context: .
  27. dockerfile: Dockerfile
  28. hostname: web
  29. command: ./docker-entrypoint.sh
  30. volumes:
  31. - .:/app # mount current directory inside container
  32. ports:
  33. - "8000:8000"
  34. # set up links so that web knows about db, rabbit and redis
  35. links:
  36. - db
  37. - redis
  38. depends_on:
  39. - db
  40.  
  41. # Celery worker
  42. worker:
  43. build:
  44. context: .
  45. dockerfile: Dockerfile
  46. command: ./run_celery.sh
  47. volumes:
  48. - .:/app
  49. links:
  50. - db
  51. - sqs
  52. depends_on:
  53. - sqs
Add Comment
Please, Sign In to add comment