added mts8 docker-compose
This commit is contained in:
parent
2d7d1462f9
commit
b749d3f69f
1 changed files with 52 additions and 0 deletions
52
sites/mts8/docker-compose.yml
Normal file
52
sites/mts8/docker-compose.yml
Normal file
|
@ -0,0 +1,52 @@
|
||||||
|
version: '3.7'
|
||||||
|
|
||||||
|
services:
|
||||||
|
drupal:
|
||||||
|
image: drupal:8-apache
|
||||||
|
# No need to expose a port when you know the container's IP
|
||||||
|
# ports:
|
||||||
|
# - 8080:80
|
||||||
|
volumes:
|
||||||
|
# this takes advantage of the feature in Docker that a new anonymous
|
||||||
|
# volume (which is what we're creating here) will be initialized with the
|
||||||
|
# existing content of the image at the same location
|
||||||
|
- /var/www/html/modules
|
||||||
|
- /var/www/html/profiles
|
||||||
|
# - /var/www/html/sites
|
||||||
|
# We want a host volume for the themes directory to easily work on theming
|
||||||
|
- ./themes:/var/www/html/themes
|
||||||
|
- ./sites:/var/www/html/sites
|
||||||
|
# Drupal 8 needs Drupal 7 folder to migrate
|
||||||
|
- "/var/www/mts7:/var/www/mts7"
|
||||||
|
restart: always
|
||||||
|
# Fix the container's IP
|
||||||
|
networks:
|
||||||
|
drupalnet:
|
||||||
|
ipv4_address: 172.28.0.2
|
||||||
|
|
||||||
|
db:
|
||||||
|
image: mariadb:10
|
||||||
|
volumes:
|
||||||
|
- "mariadb_data:/var/lib/mysql"
|
||||||
|
restart: always
|
||||||
|
networks:
|
||||||
|
drupalnet:
|
||||||
|
ipv4_address: 172.28.0.3
|
||||||
|
environment:
|
||||||
|
MYSQL_ROOT_PASSWORD: 'qdlkjqsdlkj78YKJHDKJ332'
|
||||||
|
MYSQL_DATABASE: 'drupal'
|
||||||
|
MYSQL_USER: 'drupal'
|
||||||
|
MYSQL_PASSWORD: 'drupaltestsite'
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
mariadb_data:
|
||||||
|
driver: local
|
||||||
|
|
||||||
|
networks:
|
||||||
|
drupalnet:
|
||||||
|
ipam:
|
||||||
|
driver: default
|
||||||
|
config:
|
||||||
|
- subnet: 172.28.0.0/16
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue