forked from domshyra/domshyra
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
28 lines (27 loc) · 974 Bytes
/
docker-compose.yml
File metadata and controls
28 lines (27 loc) · 974 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
version: '3.4'
#TODO: test this file in a web service on azure to see if it works
services:
web:
image: domshyra/containersdemo-web:prod
build:
context: Web
dockerfile: ./Dockerfile
environment:
NODE_ENV: production
API_URL: https://domshyra-containerdemo-api.azurewebsites.net/
ports:
- 3000:3000 # might be able to drop the 3000:3000 in favor of just 3000 for scaling using --scale web=2 or something
api:
image: domshyra/containersdemo-api:prod
build:
context: Api
dockerfile: ./Dockerfile
ports:
- 8000:80 # this would be intresting for scaling, because then you would need a load balancer to direct from the front end to the apis
- 8001:443
environment:
- ASPNETCORE_ENVIRONMENT=Release
- ASPNETCORE_URLS=https://+:443;http://+80
- ASPNETCORE_HTTPS_PORT=8001
- Spotify:ClientId=${SPOTIFY_CLIENT_ID}
- Spotify:ClientSecret=${SPOTIFY_CLIENT_SECRET}