Advertisement
Mochinov

Untitled

Jun 30th, 2023
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. version: "3"
  2. services:
  3. back:
  4. build:
  5. context: .
  6. dockerfile: docker/web/dev/Dockerfile
  7. volumes:
  8. - ./back:/app
  9. - static:/app/static
  10. - media:/app/media
  11. depends_on:
  12. - db
  13. environment:
  14. - DJANGO_SETTINGS_MODULE=settings.dev
  15. - FRONTEND_SITE=https://developerstest.ru
  16. entrypoint: /entrypoint.sh
  17. restart: always
  18. networks:
  19. - union-network
  20.  
  21. server:
  22. image: nginx:1.18
  23. volumes:
  24. - ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
  25. - static:/app/static/storage/:ro
  26. - media:/app/media/:ro
  27. - ./front_app/build:/app/frontend
  28. ports:
  29. - 8000:80
  30. depends_on:
  31. - back
  32. restart: always
  33. networks:
  34. - union-network
  35.  
  36. redis:
  37. image: redis:alpine
  38. networks:
  39. - union-network
  40.  
  41. celery:
  42. build:
  43. context: .
  44. dockerfile: docker/web/prod/Dockerfile
  45. command: celery -A back worker -l info
  46. volumes:
  47. - ./back:/app
  48. depends_on:
  49. - redis
  50. networks:
  51. - union-network
  52.  
  53. db:
  54. image: postgres:12.0-alpine
  55. volumes:
  56. - ./bot:/bot
  57. - postgres_volume:/var/lib/postgresql/data/
  58. environment:
  59. - POSTGRES_USER=django_user
  60. - POSTGRES_PASSWORD=django_password
  61. - POSTGRES_DB=django_db
  62. networks:
  63. - union-network
  64.  
  65. volumes:
  66. postgres_volume:
  67. static:
  68. media:
  69. letsencrypt:
  70.  
  71. networks:
  72. union-network:
  73.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement