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
> Replace `-p 3000:3000` with other port bindings as needed._
126
+
> 💡**TIP:**<br>
127
+
> _To use other port bindings aside from the default `3000`:_
128
+
> 1. Add a `PORT` environment variable eg., `-e PORT=3003`
129
+
> 2. Replace `-p 3000:3000` with the `PORT` environment variable.
125
130
126
131
- Using Docker compose (2nd option):<br>
127
132
- `docker compose -f docker-compose.dev.yml up`
128
-
- > **INFO:** Uncomment the following lines in the `docker-compose.dev.yml` file when working in a Windows host.
133
+
- > **INFO:** Uncomment the following lines in the `docker-compose.dev.yml` file when working in a **Windows host**.
134
+
```yml
135
+
environment:
136
+
# Enable USE_POLLING if working in Windows WSL2 to enable live reload
137
+
- USE_POLLING=true
129
138
```
130
-
# Enable USE_POLLING if working in Windows WSL2 to enable live reload
131
-
environment:
132
-
- USE_POLLING=true
139
+
- > **INFO:** Enable using **other ports** - uncomment the following lines in the `docker-compose.dev.yml` and expose the new port under the `"ports"` section.
140
+
```yml
141
+
ports:
142
+
- "3002:3002"
143
+
environment:
144
+
# Use other ports aside from the 3000 default
145
+
# Ensure to map and expose this port under the "ports" section eg., -"3002:3002"
146
+
- PORT=3002
133
147
```
134
148
3. Refer to the [Usage](#usage) section steps **# 2 - # 4** for local development.
135
149
@@ -158,7 +172,7 @@ The **development** Docker image contains Node runtime, Gulp, Browser-Sync and Y
158
172
159
173
### Production Image
160
174
161
-
The **production** Docker image contains the static website running in an nginx container for minimal production website build. Build it with:
175
+
The **production** Docker image contains the static website running in an Nginx container for minimal production website build. Build it with:
0 commit comments