您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

docker-compose.example.yml 700 B

123456789101112131415161718192021222324252627282930
  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. - 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"