docker-compose.1.yml 549 B

12345678910111213141516171819202122232425
  1. version: "3"
  2. services:
  3. db:
  4. image: mysql:5.7
  5. restart: always
  6. environment:
  7. MYSQL_ROOT_PASSWORD: notSecureChangeMe
  8. MYSQL_DATABASE: postfixadmin
  9. MYSQL_USER: postfixadmin
  10. MYSQL_PASSWORD: example
  11. postfixadmin:
  12. depends_on:
  13. - db
  14. image: postfixadmin
  15. ports:
  16. - 8000:80
  17. restart: always
  18. environment:
  19. POSTFIXADMIN_DB_TYPE: mysqli
  20. POSTFIXADMIN_DB_HOST: db
  21. POSTFIXADMIN_DB_USER: postfixadmin
  22. POSTFIXADMIN_DB_NAME: postfixadmin
  23. POSTFIXADMIN_DB_PASSWORD: example