-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-prod.yml
More file actions
32 lines (31 loc) · 930 Bytes
/
docker-compose-prod.yml
File metadata and controls
32 lines (31 loc) · 930 Bytes
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
services:
nnews-api:
build:
context: .
dockerfile: NNews.API.Dockerfile
container_name: nnews-api
restart: unless-stopped
environment:
ASPNETCORE_ENVIRONMENT: Production
ASPNETCORE_URLS: "http://+:80"
Tenant__DefaultTenantId: emagine
# Maps to appsettings: Tenants.emagine
Tenants__emagine__ConnectionString: ${EMAGINE_CONNECTION_STRING}
Tenants__emagine__JwtSecret: ${EMAGINE_JWT_SECRET}
# Maps to appsettings: Tenants.devblog
Tenants__devblog__ConnectionString: ${DEVBLOG_CONNECTION_STRING}
Tenants__devblog__JwtSecret: ${DEVBLOG_JWT_SECRET}
expose:
- "80"
networks:
- emagine-network
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:80/ || exit 1"]
interval: 30s
timeout: 3s
start_period: 10s
retries: 3
networks:
emagine-network:
name: emagine-network
external: true