docker: support changin httpd port with env var
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
9e44db01f9
commit
63bb1700a0
|
@ -12,5 +12,7 @@ RUN yarn build
|
||||||
FROM lipanski/docker-static-website:latest
|
FROM lipanski/docker-static-website:latest
|
||||||
COPY --from=builder /app/dist .
|
COPY --from=builder /app/dist .
|
||||||
COPY httpd.conf .
|
COPY httpd.conf .
|
||||||
EXPOSE 3000
|
ARG PORT=3000
|
||||||
CMD ["/busybox", "httpd", "-f", "-v", "-p", "3000", "-c", "httpd.conf"]
|
EXPOSE ${PORT}
|
||||||
|
ENTRYPOINT ["/busybox", "httpd"]
|
||||||
|
CMD ["-f", "-v", "-p", "${PORT}", "-c", "httpd.conf"]
|
||||||
|
|
|
@ -7,9 +7,14 @@ services:
|
||||||
container_name: terminal
|
container_name: terminal
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- 3000:3000
|
- '0.0.0.0:${PORT:-3000}:${PORT:-3000}'
|
||||||
|
command: >
|
||||||
|
-f
|
||||||
|
-v
|
||||||
|
-p ${PORT:-3000}
|
||||||
|
-c httpd.conf
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost:80"]
|
test: ["CMD", "curl", "-f", "http://localhost:${PORT:-3000}"]
|
||||||
interval: 200s
|
interval: 200s
|
||||||
timeout: 200s
|
timeout: 200s
|
||||||
retries: 5
|
retries: 5
|
||||||
|
|
Loading…
Reference in New Issue