Skip to content

Commit 0546be2

Browse files
chore: add nginx service to docker-compose.yml
1 parent 3894d1e commit 0546be2

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

docker-compose.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,26 @@ services:
1313
- HangfireSettings__Credentials__Username=${HANGFIRE_USERNAME}
1414
- HangfireSettings__Credentials__Password=${HANGFIRE_PASSWORD}
1515
- SecuritySettings__JwtSettings__SecretKey=${JWT_SECRET_KEY}
16-
ports:
17-
- "8081:8080"
1816
networks:
1917
- the-template-network
18+
deploy:
19+
replicas: 3
2020
healthcheck:
21-
test: ["CMD", "curl", "-f", "http://localhost:8080/api/health"]
21+
test: ["CMD", "curl", "-f", "http://webapi/health"]
2222
interval: 30s
2323
timeout: 10s
2424
retries: 3
25+
26+
nginx:
27+
image: nginx:latest
28+
volumes:
29+
- ./nginx.conf:/etc/nginx/nginx.conf:ro
30+
ports:
31+
- "80:80"
32+
networks:
33+
- the-template-network
34+
depends_on:
35+
- webapi
2536
networks:
2637
the-template-network:
2738
external: true

0 commit comments

Comments
 (0)