mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-12-21 13:23:02 +01:00
add drupal
This commit is contained in:
33
drupal/README.md
Normal file
33
drupal/README.md
Normal file
@@ -0,0 +1,33 @@
|
||||
drupal
|
||||
======
|
||||
|
||||
```
|
||||
drupal:
|
||||
image: drupal
|
||||
ports:
|
||||
- "8888:80"
|
||||
links:
|
||||
- mysql
|
||||
restart: always
|
||||
|
||||
mysql:
|
||||
image: mysql
|
||||
ports:
|
||||
- "127.0.0.1:3306:3306"
|
||||
environment:
|
||||
- MYSQL_ROOT_PASSWORD=root
|
||||
- MYSQL_DATABASE=drupal
|
||||
restart: always
|
||||
```
|
||||
|
||||
```
|
||||
cd ~/fig/drupal/
|
||||
docker-compose up -d mysql
|
||||
sleep 30
|
||||
docker-compose up -d drupal
|
||||
|
||||
docker cp drupal_mysql_1:/usr/bin/mysql /usr/local/bin/
|
||||
mysql -h127.0.0.1 -P3306 -uroot -proot drupal
|
||||
|
||||
firefox http://127.0.0.1:8888
|
||||
```
|
||||
7
drupal/docker-compose.yml
Normal file
7
drupal/docker-compose.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
drupal:
|
||||
image: drupal
|
||||
ports:
|
||||
- "8888:80"
|
||||
volumes:
|
||||
- /var/www/html/sites
|
||||
restart: always
|
||||
Reference in New Issue
Block a user