Mirror of github.com/ppy/osu-web, in case ppy decides to take the original down for some reason.
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.

docker-compose.yml 1.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. version: '3.4'
  2. x-env: &x-env
  3. CACHE_DRIVER: redis
  4. COMPOSER_HOME: /data/osuweb/.docker/.composer
  5. DB_HOST: db
  6. ES_HOST: elasticsearch:9200
  7. HOME: /data/osuweb/.docker
  8. REDIS_HOST: redis
  9. YARN_CACHE_FOLDER: /data/osuweb/.docker/.yarn
  10. services:
  11. nginx:
  12. image: nginx:latest
  13. depends_on:
  14. - php
  15. volumes:
  16. - ./docker/nginx/nginx-osu-next:/etc/nginx/conf.d/default.conf
  17. - .:/data/osuweb
  18. ports:
  19. - "${NGINX_PORT:-8080}:80"
  20. db:
  21. image: mysql:8.0
  22. volumes:
  23. - database:/var/lib/mysql
  24. - ./bin/db_setup.sh:/docker-entrypoint-initdb.d/db_setup.sh
  25. - ./docker/mysql/db_user.sql:/docker-entrypoint-initdb.d/db_user.sql
  26. environment:
  27. <<: *x-env
  28. MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
  29. MYSQL_ONETIME_PASSWORD: "yes"
  30. command: --default-authentication-plugin=mysql_native_password
  31. redis:
  32. image: redis:latest
  33. elasticsearch:
  34. image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.2.1
  35. volumes:
  36. - elasticsearch:/usr/share/elasticsearch/data
  37. environment:
  38. discovery.type: single-node
  39. php:
  40. build:
  41. context: ./docker/php
  42. depends_on:
  43. - db
  44. working_dir: /data/osuweb
  45. volumes:
  46. - .:/data/osuweb
  47. user: ${UID:?err}
  48. environment:
  49. <<: *x-env
  50. OSU_INSTALL_DEV: 1
  51. OSU_SKIP_CACHE_PERMISSION_OVERRIDE: 1
  52. command: ['./docker/php/start.sh', 'db:3306']
  53. yarn:
  54. image: node:8-alpine
  55. volumes:
  56. - .:/data/osuweb
  57. environment:
  58. <<: *x-env
  59. user: ${UID:?err}
  60. working_dir: /data/osuweb
  61. command: sh -c "yarn && yarn run watch"
  62. volumes:
  63. database:
  64. elasticsearch: