docker-compose.yml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. version: '3.1'
  2. services:
  3. db:
  4. image: mysql
  5. restart: always
  6. container_name: db_mysql
  7. build: mysql/
  8. environment:
  9. MYSQL_ROOT_PASSWORD: $MYSQL_ROOT_PASSWORD
  10. MYSQL_ALLOW_EMPTY_PASSWORD: false
  11. MYSQL_USER: $MYSQL_USER
  12. MYSQL_PASSWORD: $MYSQL_PASSWORD
  13. MYSQL_DATABASE: $MYSQL_DATABASE
  14. ports:
  15. - $MYSQL_LOCAL_PORT:3306
  16. volumes:
  17. - $MYSQL_LOCAL_DIR:/var/lib/mysql
  18. adminer:
  19. image: adminer
  20. restart: always
  21. container_name: adminer
  22. depends_on:
  23. - db
  24. ports:
  25. - $ADMINER_LOCAL_PORT:8080
  26. barin:
  27. build:
  28. context: barin/
  29. args:
  30. HTTP_PROXY: $HTTP_PROXY
  31. container_name: barin
  32. command: bash
  33. depends_on:
  34. - db
  35. environment:
  36. MYSQL_LOCAL_HOST: $MYSQL_LOCAL_HOST
  37. MYSQL_LOCAL_PORT: $MYSQL_LOCAL_PORT
  38. MYSQL_USER: $MYSQL_USER
  39. MYSQL_PASSWORD: $MYSQL_PASSWORD
  40. MYSQL_DATABASE: $MYSQL_DATABASE
  41. OUTLINE_API_URL: $OUTLINE_API_URL
  42. HTTP_PROXY: $HTTP_PROXY
  43. TOKEN: $TOKEN
  44. volumes:
  45. - $PWD:/develop
  46. stdin_open: true # docker run -i
  47. tty: true # docker run -t
  48. networks:
  49. host:
  50. name: host
  51. external: true