Simple website with some JavaScript games.
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.

35 lines
695 B

  1. version: '3'
  2. # how to access sql when running -- used to import database into docker container
  3. # mysql --port=3306 --host=127.0.0.1 -u root --password=password
  4. services:
  5. clubdb:
  6. image: mysql
  7. command: --default-authentication-plugin=mysql_native_password
  8. restart: always
  9. environment:
  10. MYSQL_ROOT_PASSWORD: password
  11. volumes:
  12. - "./db:/var/lib/mysql"
  13. ports:
  14. - "3306:3306"
  15. # Php-fpm configuration
  16. php:
  17. build: ./php_docker/
  18. volumes:
  19. - .:/app/public
  20. links:
  21. - clubdb
  22. web:
  23. build: .
  24. ports:
  25. - "8080:80"
  26. volumes:
  27. - .:/app/public
  28. links:
  29. - php
  30. - clubdb
  31. depends_on:
  32. - php
  33. - clubdb