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
|
||||
COPY --from=builder /app/dist .
|
||||
COPY httpd.conf .
|
||||
EXPOSE 3000
|
||||
CMD ["/busybox", "httpd", "-f", "-v", "-p", "3000", "-c", "httpd.conf"]
|
||||
ARG PORT=3000
|
||||
EXPOSE ${PORT}
|
||||
ENTRYPOINT ["/busybox", "httpd"]
|
||||
CMD ["-f", "-v", "-p", "${PORT}", "-c", "httpd.conf"]
|
||||
|
|
|
@ -7,9 +7,14 @@ services:
|
|||
container_name: terminal
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- 3000:3000
|
||||
- '0.0.0.0:${PORT:-3000}:${PORT:-3000}'
|
||||
command: >
|
||||
-f
|
||||
-v
|
||||
-p ${PORT:-3000}
|
||||
-c httpd.conf
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:80"]
|
||||
test: ["CMD", "curl", "-f", "http://localhost:${PORT:-3000}"]
|
||||
interval: 200s
|
||||
timeout: 200s
|
||||
retries: 5
|
||||
|
|
Loading…
Reference in New Issue