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.
 
 
 
 
 
 

30 regels
640 B

  1. version: '3'
  2. services:
  3. web:
  4. image: development
  5. build: .
  6. working_dir: /app
  7. command: >
  8. bash -c "python manage.py migrate
  9. && python3 manage.py collectstatic --noinput
  10. && 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. user: ${CURRENT_UID}
  16. volumes:
  17. - .:/app
  18. restart: always
  19. build_frontend:
  20. image: development
  21. build: .
  22. working_dir: /app/pinry-spa/
  23. command: >
  24. bash -c "yarn install && yarn build"
  25. user: ${CURRENT_UID}
  26. volumes:
  27. - .:/app
  28. restart: no