Last active
August 2, 2022 11:24
-
-
Save coonica/efb19ecfe68059c5a92fd072593dae83 to your computer and use it in GitHub Desktop.
This file contains 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' | |
services: | |
web: | |
build: ./ | |
environment: | |
- APACHE_RUN_USER=#1000 | |
- COMPOSER_MEMORY_LIMIT=-1 | |
volumes: | |
- ./:/var/www/html # прокидывание содержимого всех файлов проекта в папку /var/www/html контейнера | |
ports: | |
- 8095:80 # 8095 - порт по к-рому доступен сайт вне контейнера (т.е. http://localhost:8095 ) | |
working_dir: /var/www/html # путь к файлам сайта внутри контейнера | |
db: | |
image: mariadb | |
environment: | |
MYSQL_ROOT_PASSWORD: root # пароль для базы данных (логин по умолчанию root) | |
MYSQL_DATABASE: arista_laravel # имя базы данных | |
phpmyadmin: | |
image: phpmyadmin/phpmyadmin | |
links: | |
- db:db | |
ports: | |
- 9095:80 # 9095 - порт по к-рому доступен phpMyAdmin вне контейнера (т.е. http://localhost:9095 ) | |
environment: | |
MYSQL_ROOT_PASSWORD: root | |
depends_on: | |
- db |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment