Skip to content

Commit

Permalink
upgrade bun image version & setup tls traefik
Browse files Browse the repository at this point in the history
  • Loading branch information
fachrihawari committed Nov 22, 2024
1 parent 3b70fe9 commit ed4a49a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Use the official Bun image as the base
FROM oven/bun:1.1.29-alpine
FROM oven/bun:1.1.36-alpine

# Set the working directory
WORKDIR /app
Expand Down
Binary file modified bun.lockb
Binary file not shown.
16 changes: 12 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,27 @@ services:
expose:
- ${PORT}
environment:
PORT: ${PORT}
NEXT_PUBLIC_URL: ${NEXT_PUBLIC_URL}
GOOGLE_CLIENT_SECRET: ${GOOGLE_CLIENT_SECRET}
JWT_SECRET: ${JWT_SECRET}
MIDTRANS_SERVER_KEY: ${MIDTRANS_SERVER_KEY}
MIDTRANS_CLIENT_KEY: ${MIDTRANS_CLIENT_KEY}
MONGO_URI: ${MONGO_URI}
MONGO_DATABASE: ${MONGO_DATABASE}
NEXT_PUBLIC_MIDTRANS_CLIENT_KEY: ${NEXT_PUBLIC_MIDTRANS_CLIENT_KEY}
NEXT_PUBLIC_GOOGLE_CLIENT_ID: ${NEXT_PUBLIC_GOOGLE_CLIENT_ID}
PORT: ${PORT}
TOTAL_PRODUCTS: ${TOTAL_PRODUCTS}

labels:
- "traefik.enable=true"
- "traefik.http.routers.tokopakedi.rule=Host(`tokopakedi.hawari.dev`)"
- "traefik.http.routers.tokopakedi.entrypoints=web"
- "traefik.http.routers.tokopakedi.entrypoints=websecure"
- "traefik.http.routers.tokopakedi.tls.certresolver=letsencryptresolver"
- "traefik.http.services.tokopakedi.loadbalancer.server.port=${PORT}"
healthcheck:
test: ["CMD-SHELL", "curl http://localhost:${PORT}/api/heartbeat"]
interval: 5s
start_period: 5s
interval: 3600s
timeout: 5s
retries: 5
networks:
Expand Down

0 comments on commit ed4a49a

Please sign in to comment.