Created
November 25, 2024 20:00
-
-
Save Kremilly/9ea59977aa5f5b5bc2f0700d5422fd86 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: '3.1' | |
| services: | |
| redis: | |
| image: 'redis:alpine' | |
| mysql: | |
| image: 'mysql:8.0' | |
| working_dir: /app | |
| volumes: | |
| - '.:/app' | |
| environment: | |
| - MYSQL_ROOT_PASSWORD=root | |
| - MYSQL_DATABASE=asj | |
| - MYSQL_USER=admin | |
| - MYSQL_PASSWORD=root | |
| ports: | |
| - '23002:3306' | |
| webserver: | |
| image: 'nginx:alpine' | |
| working_dir: /app | |
| volumes: | |
| - '.:/app' | |
| - './phpdocker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf' | |
| ports: | |
| - '23000:80' | |
| php-fpm: | |
| build: phpdocker/php-fpm | |
| working_dir: /app | |
| volumes: | |
| - '.:/app' | |
| - './phpdocker/php-fpm/php-ini-overrides.ini:/etc/php/8.3/fpm/conf.d/99-overrides.ini' | |
| - './phpdocker/php-fpm/php-ini-overrides.ini:/etc/php/8.3/cli/conf.d/99-overrides.ini' | |
| phpmyadmin: | |
| image: 'phpmyadmin/phpmyadmin' | |
| environment: | |
| PMA_HOST: mysql | |
| PMA_USER: root | |
| PMA_PASSWORD: root | |
| ports: | |
| - '23001:80' # Acesse o phpMyAdmin em http://localhost:23001 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment