Skip to content
This repository was archived by the owner on Dec 3, 2022. It is now read-only.

Commit fac924c

Browse files
committed
use jwilder/nginx-proxy to access with any hostname
1 parent df17bbc commit fac924c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

docker-compose.override.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ services:
4646
#container_name: drupal_php
4747

4848
web:
49+
environment:
50+
VIRTUAL_HOST: localhost
4951
volumes:
5052
# put your drupal source code and mount as volume.
5153
- ./volumes/drupal:/var/www/html:cached
@@ -54,9 +56,15 @@ services:
5456
# - drupal_source:/var/www/html:rw
5557
# override nginx config to execute drupal through the php container.
5658
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
59+
#container_name: drupal_web
60+
61+
nginx-proxy:
62+
image: jwilder/nginx-proxy:latest
63+
volumes:
64+
- /var/run/docker.sock:/tmp/docker.sock:ro
5765
ports:
5866
- "80:80"
59-
#container_name: drupal_web
67+
#container_name: drupal_nginx_proxy
6068

6169
mailhog:
6270
image: mailhog/mailhog

0 commit comments

Comments
 (0)