build(docker): make the web port configurable

This commit is contained in:
Oliver Davies 2021-10-24 10:21:03 +01:00
parent 61ec3db7b3
commit bd2910781c
2 changed files with 3 additions and 1 deletions

2
.env
View file

@ -1 +1,3 @@
COMPOSE_PROJECT_NAME=oliverdavies-uk
DOCKER_WEB_PORT_FORWARD=80

View file

@ -6,7 +6,7 @@ services:
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
ports:
- 80:80
- "${DOCKER_WEB_PORT_FORWARD:-80}:80"
app:
build: