You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

31 line
733 B

  1. version: '3'
  2. services:
  3. web:
  4. image: development
  5. build: .
  6. working_dir: /app
  7. command: >
  8. bash -c "poetry run python manage.py migrate
  9. && poetry run python3 manage.py collectstatic --noinput
  10. && poetry run gunicorn pinry.wsgi:application -b 0.0.0.0:8000 --timeout 30"
  11. ports:
  12. - "127.0.0.1:2048:8000"
  13. environment:
  14. - SECRET_KEY=CHANGE-ME
  15. - DJANGO_SETTINGS_MODULE=pinry.settings.development
  16. user: ${CURRENT_UID}
  17. volumes:
  18. - .:/app
  19. restart: always
  20. build_frontend:
  21. image: development
  22. build: .
  23. working_dir: /app/pinry-spa/
  24. command: >
  25. bash -c "yarn install && yarn build"
  26. user: ${CURRENT_UID}
  27. volumes:
  28. - .:/app
  29. restart: "no"