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.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. ---
  2. networks:
  3. default:
  4. external:
  5. name: ${PREFIX}
  6. services:
  7. adminer:
  8. container_name: ${PREFIX}-adminer
  9. image: adminer:4.7.2-standalone
  10. labels:
  11. - traefik.enable=true
  12. - traefik.http.routers.${PREFIX}-adminer.entrypoints=https
  13. - traefik.http.routers.${PREFIX}-adminer.rule=Host(`adminer.${PREFIX}.localhost`)
  14. - traefik.http.routers.${PREFIX}-adminer.tls=true
  15. - traefik.http.services.${PREFIX}-adminer.loadbalancer.server.port=8080
  16. db:
  17. command: --default-authentication-plugin=mysql_native_password
  18. container_name: ${PREFIX}-db
  19. environment:
  20. MYSQL_DATABASE: ${PREFIX}
  21. MYSQL_PASSWORD: ${DB_USER_PASSWORD}
  22. MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASSWORD}
  23. MYSQL_USER: ${DB_USER}
  24. hostname: ${PREFIX}-db
  25. image: mariadb:10.4.6-bionic
  26. volumes:
  27. - db:/var/lib/mysql
  28. web:
  29. container_name: ${PREFIX}-web
  30. image: wp-php7.3:dev
  31. labels:
  32. - traefik.enable=true
  33. - traefik.http.routers.${PREFIX}-web.entrypoints=https
  34. - traefik.http.routers.${PREFIX}-web.rule=Host(`www.${PREFIX}.localhost`)
  35. - traefik.http.routers.${PREFIX}-web.tls=true
  36. - traefik.http.services.${PREFIX}-web.loadbalancer.server.port=80
  37. volumes:
  38. - web:/var/www/html
  39. - wp-cli-cache:/var/www/.wp-cli
  40. version: "3.4"
  41. volumes:
  42. db:
  43. name: ${PREFIX}-db
  44. web:
  45. name: ${PREFIX}-web
  46. wp-cli-cache:
  47. name: wp-cli-cache