Compare commits
2 Commits
49bd77bec6
...
add-soones
| Author | SHA1 | Date | |
|---|---|---|---|
| 3711d0f121 | |||
| 34ebace4de |
@ -3,6 +3,9 @@ FROM node:18-alpine
|
|||||||
# Set working directory
|
# Set working directory
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
# Install Curl
|
||||||
|
RUN apk add --no-cache curl
|
||||||
|
|
||||||
# Copy package files
|
# Copy package files
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
|
|
||||||
|
|||||||
@ -9,8 +9,10 @@ services:
|
|||||||
- MONGO_URI=mongodb://admin:password123@mongodb:27017
|
- MONGO_URI=mongodb://admin:password123@mongodb:27017
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
|
- "traefik.docker.network=traefik"
|
||||||
- "traefik.http.routers.apartment-api.rule=Host(`apartments.maverickapplications.com`) && PathPrefix(`/api`)"
|
- "traefik.http.routers.apartment-api.rule=Host(`apartments.maverickapplications.com`) && PathPrefix(`/api`)"
|
||||||
- "traefik.http.routers.apartment-api.entrypoints=websecure"
|
- "traefik.http.routers.apartment-api.entrypoints=websecure"
|
||||||
|
- "traefik.http.routers.apartment-api.tls=true"
|
||||||
- "traefik.http.routers.apartment-api.tls.certresolver=letsencrypt"
|
- "traefik.http.routers.apartment-api.tls.certresolver=letsencrypt"
|
||||||
- "traefik.http.routers.apartment-api.priority=100"
|
- "traefik.http.routers.apartment-api.priority=100"
|
||||||
- "traefik.http.services.apartment-api.loadbalancer.server.port=8080" # Updated to match
|
- "traefik.http.services.apartment-api.loadbalancer.server.port=8080" # Updated to match
|
||||||
|
|||||||
Reference in New Issue
Block a user