You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
942 B
35 lines
942 B
# Drupal with PostgreSQL |
|
# |
|
# Access via "http://localhost:8080" |
|
# (or "http://$(docker-machine ip):8080" if using docker-machine) |
|
# |
|
# During initial Drupal setup, |
|
# Database type: PostgreSQL |
|
# Database name: postgres |
|
# Database username: postgres |
|
# Database password: example |
|
# ADVANCED OPTIONS; Database host: postgres |
|
|
|
version: '3.1' |
|
|
|
services: |
|
|
|
drupal: |
|
image: drupal:8-apache |
|
ports: |
|
- 8080:80 |
|
volumes: |
|
- ./data/modules:/var/www/html/modules |
|
- ./data/profiles:/var/www/html/profiles |
|
- ./data/themes:/var/www/html/themes |
|
# 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 |
|
- ./data/sites:/var/www/html/sites |
|
restart: always |
|
|
|
postgres: |
|
image: postgres:10 |
|
environment: |
|
POSTGRES_PASSWORD: example |
|
restart: always |