-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
36 lines (35 loc) · 1.16 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
services:
web:
build: .
restart: always
expose:
- ${PORT}
environment:
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=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"]
start_period: 60s
interval: 3600s
timeout: 5s
retries: 5
networks:
- traefik-network
networks:
traefik-network:
external: true