-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
74 lines (70 loc) · 1.98 KB
/
docker-compose.prod.yml
File metadata and controls
74 lines (70 loc) · 1.98 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
version: '3.8'
services:
backend:
image: portlogistics-backend:latest
container_name: portlogistics-backend-prod
restart: unless-stopped
ports:
- "5001:5001"
environment:
- ASPNETCORE_ENVIRONMENT=Production
- Database__Provider=sqlite
- ConnectionStrings__Sqlite=Data Source=/app/data/portlogistics.db
- Auth0__Domain=${AUTH0_DOMAIN}
- Auth0__ClientId=${AUTH0_CLIENT_ID}
- Auth0__ClientSecret=${AUTH0_CLIENT_SECRET}
- Auth0__Audience=${AUTH0_AUDIENCE}
- Auth0Management__Domain=${AUTH0_DOMAIN}
- Auth0Management__ClientId=${AUTH0_MGMT_CLIENT_ID}
- Auth0Management__ClientSecret=${AUTH0_MGMT_CLIENT_SECRET}
- Auth0Management__Audience=${AUTH0_MGMT_AUDIENCE}
- ActivationTokenSecret=${ACTIVATION_TOKEN_SECRET}
- FrontendUrl=${FRONTEND_URL}
volumes:
- portlogistics-data:/app/data:Z
- public-resources:/app/PublicResources:Z
networks:
- portlogistics-network
security_opt:
- label=disable
userns_mode: "host"
# healthcheck:
# test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:5001/health"]
# interval: 30s
# timeout: 3s
# retries: 3
# start_period: 40s
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
frontend:
image: portlogistics-frontend:latest
container_name: portlogistics-frontend-prod
restart: unless-stopped
ports:
- "80:80"
depends_on:
- backend
networks:
- portlogistics-network
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost/health"]
interval: 30s
timeout: 3s
retries: 3
start_period: 10s
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
networks:
portlogistics-network:
driver: bridge
volumes:
portlogistics-data:
driver: local
public-resources:
driver: local