-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
89 lines (83 loc) · 2.27 KB
/
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
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
services:
database:
image: mongo:latest
environment:
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: password
ports:
- "27017:27017"
volumes:
- starwars-db:/data/db
web:
build:
context: .
dockerfile: Dockerfile
target: web
image: pjmagee/starwars-data-web
depends_on:
- database
ports:
- "7051:7051"
- "5051:5051"
entrypoint: ["dotnet", "StarWarsData.Server.dll"]
environment:
ASPNETCORE_ENVIRONMENT: Production
ASPNETCORE_HTTPS: 7051
ASPNETCORE_URLS: https://*:7051;http://*:5051
ASPNETCORE_Kestrel__Certificates__Default__Password: password
ASPNETCORE_Kestrel__Certificates__Default__Path: /https/aspnetapp.pfx
SWDATA_Settings__MongoConnectionString: mongodb://admin:password@database:27017
volumes:
- ~/.aspnet/https:/https
download:
build:
context: .
dockerfile: Dockerfile
target: cli
image: pjmagee/starwars-data-cli
profiles: ["process"]
entrypoint: ["dotnet", "StarWarsData.CLI.dll"]
environment:
DOTNET_ENVIRONMENT: Development
SWDATA_Settings__DataDirectory: /data
SWDATA_Settings__PageNamespace: 0
SWDATA_Settings__PageLimit: 500
SWDATA_Settings__PageStart: 1
SWDATA_Settings__FirstPageOnly: false
command: download
volumes:
# - starwars-data:/data
- .\data:/data
process:
build:
context: .
dockerfile: Dockerfile
target: cli
image: pjmagee/starwars-data-cli
profiles: ["process"]
entrypoint: ["dotnet", "StarWarsData.CLI.dll"]
environment:
DOTNET_ENVIRONMENT: Development
SWDATA_Settings__DataDirectory: /data
command: process
volumes:
# - starwars-data:/data
- .\data:/data
populate:
build:
context: .
dockerfile: Dockerfile
target: cli
image: pjmagee/starwars-data-cli:latest
entrypoint: ["dotnet", "StarWarsData.CLI.dll"]
environment:
DOTNET_ENVIRONMENT: Development
SWDATA_Settings__DataDirectory: /data
SWDATA_Settings__MongoConnectionString: mongodb://admin:password@database:27017
command: populate
volumes:
# - starwars-data:/data
- .\data:/data
volumes:
starwars-data:
starwars-db: