You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Database name/username/password: `<details for accessing your PostgreSQL instance>` (`POSTGRES_USER`, `POSTGRES_PASSWORD`; see environment variables in the description for [`postgres`](https://registry.hub.docker.com/_/postgres/))
47
47
- ADVANCED OPTIONS; Database host: `postgres` (for using the `/etc/hosts` entry added by `--link` to access the linked container's PostgreSQL instance)
48
48
49
+
## Volumes
50
+
51
+
By default, this image does not include any volumes. There is a lot of good discussion on this topic in [docker-library/drupal#3](https://github.com/docker-library/drupal/issues/3), which is definitely recommended reading.
52
+
53
+
There is consensus that `/var/www/html/modules`, `/var/www/html/profiles`, and `/var/www/html/themes` are things that generally ought to be volumes (and might have an explicit `VOLUME` declaration in a future update to this image), but handling of `/var/www/html/sites` is somewhat more complex, since the contents of that directory *do* need to be initialized with the contents from the image.
54
+
55
+
If using bind-mounts, one way to accomplish pre-seeding your local `sites` directory would be something like the following:
56
+
57
+
```console
58
+
$ docker run --rm %%REPO%% tar -cC /var/www/html/sites .| tar -xC /path/on/host/sites
59
+
```
60
+
61
+
This can then be bind-mounted into a new container:
62
+
63
+
```console
64
+
$ docker run --name some-%%REPO%% --link some-postgres:postgres -d \
0 commit comments