docker-compose.debug.yml 974 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. version: '3.4'
  2. services:
  3. db:
  4. container_name: mysql
  5. image: mysql:latest
  6. restart: always
  7. ports:
  8. - 3306:3306
  9. environment:
  10. MYSQL_ROOT_PASSWORD: 12345678
  11. LANG: C.UTF-8
  12. TZ: Asia/Shanghai
  13. MYSQL_CHARSET: utf8mb4
  14. MYSQL_COLLATION: utf8mb4_unicode_ci
  15. networks:
  16. - db_network
  17. # account: admin/lyqadmin
  18. adminer:
  19. container_name: db_adminer
  20. image: jianboy/adminer:latest-sqlite
  21. build:
  22. context: ./deploy/adminer
  23. dockerfile: ./Dockerfile
  24. ports:
  25. - 8081:8080
  26. environment:
  27. ADMINER_DEFAULT_SERVER: db
  28. # ADMINER_DESIGN: galkaev
  29. volumes:
  30. - "..:/app:rw"
  31. networks:
  32. - db_network
  33. restart: unless-stopped
  34. depends_on:
  35. - db
  36. # volumes:
  37. # - ./postgres-data:/var/lib/postgresql/data
  38. # redis:
  39. # image: redis
  40. # container_name: redis
  41. # ports:
  42. # - "63799:6379"
  43. networks:
  44. db_network:
  45. driver: bridge