feat: open-trip-api-drink #11
@ -43,12 +43,15 @@ USER node
|
||||
# go to work folder
|
||||
WORKDIR /home/node
|
||||
|
||||
|
||||
ARG port
|
||||
ENV env_port $port
|
||||
|
||||
# Expose port
|
||||
EXPOSE 3000
|
||||
EXPOSE $port
|
||||
|
||||
# Add Healthcheck
|
||||
# FIXME: remttre check avec un port
|
||||
# HEALTHCHECK --interval=10s --timeout=10s --start-period=5s --retries=3 CMD wget --no-verbose --tries=1 --spider http://localhost:3000 || exit 1
|
||||
HEALTHCHECK --interval=10s --timeout=10s --start-period=5s --retries=3 CMD wget --no-verbose --tries=1 --spider http://localhost:$port || exit 1
|
||||
|
||||
# copy from build image
|
||||
COPY --chown=node:node --from=BUILD_IMAGE /home/node/node_modules ./node_modules
|
||||
|
@ -31,6 +31,8 @@ services:
|
||||
|
||||
back_drink:
|
||||
image: git.lab-ouest.org/epitech/ratrapage_t-web_back:pr-6-head
|
||||
environment:
|
||||
- port=${BACK_BASE_PORT}
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
- traefik.http.routers.expressDrinkTweb.rule=Host(`${DRINK_URL}`)
|
||||
|
Loading…
x
Reference in New Issue
Block a user