-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathdocker-compose.yml
27 lines (27 loc) · 1014 Bytes
/
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
services:
webapi:
image: ghcr.io/${GITHUB_USER_NAME}/${IMAGE_NAME}:latest
environment:
- ASPNETCORE_ENVIRONMENT=Production
- urls=http://0.0.0.0:8080
- S3AwsSettings__AccessKey=${S3_ACCESS_KEY}
- S3AwsSettings__SecretKey=${S3_SECRET_KEY}
- RedisDatabaseSettings__Password=${REDIS_PASSWORD}
- ElasticsearchSettings__Password=${ELASTICSEARCH_PASSWORD}
- DatabaseSettings__DatabaseConnection=${DATABASE_CONNECTION}
- HangfireSettings__Storage__ConnectionString=${DATABASE_CONNECTION}
- HangfireSettings__Credentials__Username=${HANGFIRE_USERNAME}
- HangfireSettings__Credentials__Password=${HANGFIRE_PASSWORD}
- SecuritySettings__JwtSettings__SecretKey=${JWT_SECRET_KEY}
ports:
- "8081:8080"
networks:
- the-template-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/api/health"]
interval: 30s
timeout: 10s
retries: 3
networks:
the-template-network:
external: true