Skip to content

Commit

Permalink
feature #649 Make ports exposed by Docker configurable via env vars (…
Browse files Browse the repository at this point in the history
…rimas-kudelis)

This PR was merged into the 1.12 branch.

Discussion
----------



Commits
-------

07d3ef1 Make ports exposed by Docker configurable via env vars
  • Loading branch information
lchrusciel authored Jul 20, 2022
2 parents ef28d8d + 07d3ef1 commit a7306b2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ services:
# you may use a bind-mounted host directory instead, so that it is harder to accidentally remove the volume and lose all your data!
# - ./docker/mysql/data:/var/lib/mysql:rw,delegated
ports:
- "3306:3306"
- "${MYSQL_PORT:-3306}:3306"

node:
container_name: node
Expand All @@ -54,7 +54,7 @@ services:
- .:/srv/sylius:rw,cached
- ./public:/srv/sylius/public:rw,delegated
ports:
- "35729:35729"
- "${NODE_PORT:-35729}:35729"

nginx:
container_name: nginx
Expand All @@ -70,7 +70,7 @@ services:
# - ./public/media:/srv/sylius/public/media:ro
- public-media:/srv/sylius/public/media:ro,nocopy
ports:
- "80:80"
- "${HTTP_PORT:-80}:80"

mailhog:
# do not use in production!
Expand All @@ -80,7 +80,7 @@ services:
# volumes:
# - ./docker/mailhog/maildir:/maildir:rw,delegated
ports:
- "8025:8025"
- "${MAILHOG_PORT:-8025}:8025"

volumes:
mysql-data:
Expand Down

0 comments on commit a7306b2

Please sign in to comment.