2019-06-12 one file enough to run up drupal !

now running in test machine

the port in drupal service has not specify a fixed server port as I want it dynamically for test

~/my_drupal

docker-compose up -d

1051 $ cat /root/my_drupal/docker-compose.yml
version: '3.3'

services:
  drupal:
    image: drupal:latest
    ports:
      - 80
    volumes:
      - drupal_modules:/var/www/html/modules
      - drupal_profiles:/var/www/html/profiles
      - drupal_themes:/var/www/html/themes
      - drupal_sites:/var/www/html/sites
    restart: always

  postgres:
    image: postgres:10
    environment:
      POSTGRES_PASSWORD: your_postgres_password
    volumes:
        - db_data:/var/lib/postgresql/data
    restart: always

volumes:
  drupal_modules:
  drupal_profiles:
  drupal_themes:
  drupal_sites:
  db_data:

你可能感兴趣的:(2019-06-12 one file enough to run up drupal !)