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

docker-compose.prod.yml 407B

123456789101112131415161718192021
  1. version: "3.9"
  2. services:
  3. web:
  4. build: ./web
  5. container_name: python
  6. ports:
  7. - "5000:5000"
  8. volumes:
  9. - ./web:/code
  10. env_file:
  11. - ./.env.prod
  12. db:
  13. image: mariadb:latest
  14. container_name: mariadb
  15. restart: unless-stopped
  16. env_file:
  17. - ./.env.prod
  18. volumes:
  19. dbdata:/var/lib/mysql
  20. command: '--default-authentication-plugin=mysql_native_password'