Skip to content

Commit 7819beb

Browse files
committed
fix
1 parent fa0cc39 commit 7819beb

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

docker-compose-prod.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
11
services:
22
api:
3-
restart: "no" # Ensures that Docker doesn't automatically restart after failure
43
build:
54
context: ./
65
dockerfile: Dockerfile
7-
volumes:
8-
- .:/build
96
ports:
107
- "8000:8000"
118
env_file:
129
- .env
13-
command: air ./main.go -b 0.0.0.0
10+
command: ./main
1411
healthcheck:
15-
test: ["CMD", "curl", "-f", "http://localhost:8000/api/v1/general/site-detail"] # Health check endpoint
12+
test: ["CMD", "curl", "-f", "http://localhost:8000/api/v1/general/site-detail"]
1613
interval: 30s
1714
retries: 3
1815
start_period: 10s
@@ -35,4 +32,4 @@ services:
3532

3633
networks:
3734
shared_network:
38-
driver: bridge
35+
driver: bridge

0 commit comments

Comments
 (0)