-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (48 loc) · 1.27 KB
/
docker-compose.yml
File metadata and controls
51 lines (48 loc) · 1.27 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
version: '3'
services:
nginx:
image: nginx:alpine
ports:
- "80:80"
- "443:443"
restart: always
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- ./certbot:/etc/letsencrypt:ro
depends_on:
- uxtracker.web
- uxtracker.api
uxtracker.api:
image: uxtracker.api
build:
context: .
dockerfile: Dockerfile.api
container_name: uxtracker.api
environment:
- ASPNETCORE_ENVIRONMENT=${ASPNETCORE_ENVIRONMENT}
- Database__ConnectionString=${DATABASE__CONNECTIONSTRING}
- SendGrid__ApiKey=${SENDGRID__APIKEY}
- JwtPrivateKey=${JWT_PRIVATE_KEY}
- DefaultFromEmail=${DEFAULT_FROM_EMAIL}
- CorsPolicyName=${CORS_POLICY_NAME}
- PasswordSaltKey=${PASSWORD_SALT_KEY}
- FrontendUrl=${FRONTEND_URL}
- BackendUrl=${BACKEND_URL}
volumes:
- /home/rhogger/media/terms:/app/media/terms
ports:
- "8080:8080"
restart: always
uxtracker.web:
image: uxtracker.web
build:
context: .
dockerfile: Dockerfile.web
container_name: uxtracker.web
environment:
- ASPNETCORE_ENVIRONMENT=${ASPNETCORE_ENVIRONMENT}
- FrontendUrl=${FRONTEND_URL}
- BackendUrl=${BACKEND_URL}
ports:
- "8081:8081"
restart: always