docker-compose.yml 579 B

12345678910111213141516171819202122232425262728
  1. version: "2.1"
  2. services:
  3. mysql:
  4. image: daocloud.io/mysql:5.7.4
  5. volumes:
  6. - /data/db_data:/var/lib/mysql
  7. restart: always
  8. environment:
  9. MYSQL_ROOT_PASSWORD: postfixadmin
  10. MYSQL_DATABASE: postfix
  11. MYSQL_USER: postfix
  12. MYSQL_PASSWORD: 123456
  13. postfix:
  14. depends_on:
  15. - mysql
  16. image: jianboy/postfix
  17. volumes:
  18. - /data/web_data:/var/www/html
  19. restart: always
  20. environment:
  21. POSTFIX_DB_HOST: mysql:3306
  22. POSTFIX_DB_USER: postfix
  23. POSTFIX_DB_PASSWORD: 123456
  24. build: .
  25. ports:
  26. - 3000:3000