docker-compose.yml 528 B

123456789101112131415161718192021222324252627
  1. version: "3"
  2. services:
  3. db:
  4. image: mariadb:11.0.3
  5. restart: always
  6. volumes:
  7. - gnusocial-db:/var/lib/mysql
  8. environment:
  9. MYSQL_DATABASE: gnusocial
  10. MYSQL_ALLOW_EMPTY_PASSWORD: 1
  11. ports:
  12. - 3306:3306
  13. command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_bin
  14. php:
  15. build: .
  16. restart: always
  17. volumes:
  18. - ../../:/var/www/
  19. - ../../public:/var/www/html
  20. ports:
  21. - 80:80
  22. - 443:443
  23. depends_on:
  24. - db
  25. volumes:
  26. gnusocial-db: