27 lines
333 B
Markdown
27 lines
333 B
Markdown
|
|
||
|
|
||
|
# Create Database directory
|
||
|
|
||
|
mkdir db
|
||
|
chown -R 1000:1000 db
|
||
|
|
||
|
# Build Custom Drupal Image
|
||
|
|
||
|
docker-compose build
|
||
|
|
||
|
# Configure environment
|
||
|
|
||
|
cp env.sample .env
|
||
|
vim .env
|
||
|
|
||
|
# Start services
|
||
|
|
||
|
docker-compose up -d
|
||
|
|
||
|
# Import Database
|
||
|
|
||
|
docker exec -i <container_id> mysql -u<mysql-user> -p<mysql-pass> <mysql-database> < database.dump.sql
|
||
|
|
||
|
|
||
|
|