Advertisement
Guest User

Untitled

a guest
Feb 19th, 2024
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. FROM python:3.11
  2. ENV PYTHONBUFFERED=1
  3. ENV PYTHONDONTWRITEBYTECODE=1
  4.  
  5. WORKDIR /app
  6.  
  7. COPY pyproject.toml /app
  8. COPY poetry.lock /app
  9.  
  10. RUN pip3 install poetry
  11.  
  12. RUN poetry install
  13.  
  14. COPY . /app
  15.  
  16. ------------------------------
  17.  
  18. version: '3'
  19.  
  20.  
  21. services:
  22. eng-solver:
  23. build:
  24. context: ../
  25. dockerfile: .docker/Dockerfile
  26. command: "poetry run python manage.py runserver "
  27. volumes:
  28. - .:/usr/app
  29. depends_on:
  30. - db-eng-solver
  31.  
  32. db-eng-solver:
  33. container_name: db-eng-solver
  34. image: postgres:16
  35. environment:
  36. POSTGRES_USER: postgres
  37. POSTGRES_PASSWORD: artur
  38. POSTGRES_DB: EngSolver
  39.  
  40.  
  41.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement