You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
713 B

  1. version: '3'
  2. services:
  3. webserver:
  4. build: ./docker/apache
  5. restart: unless-stopped
  6. depends_on:
  7. - db
  8. volumes:
  9. - .:/var/www/html:cached
  10. - ./data:/var/compass:cached
  11. ports:
  12. - ${portWebserver}:80
  13. db:
  14. image: mysql:5.7
  15. restart: unless-stopped
  16. volumes:
  17. - db_data:/var/lib/mysql
  18. - ./docker/tmp:/tmp
  19. - ./docker/database:/docker-entrypoint-initdb.d/
  20. ports:
  21. - ${portDatabase}:3306
  22. environment:
  23. MYSQL_ROOT_PASSWORD: root
  24. MYSQL_DATABASE: ${dbName}
  25. MYSQL_USER: ${dbUser}
  26. MYSQL_PASSWORD: ${dbPassword}
  27. redis:
  28. image: redis:5
  29. restart: unless-stopped
  30. volumes:
  31. - redis_data:/data
  32. volumes:
  33. db_data:
  34. redis_data: