forked from Olive-AND-Hotchen/FVA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
52 lines (52 loc) · 1.49 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
services:
client:
image: fva:client
depends_on:
- "server"
container_name: fva_client
ports:
- "5000:80"
- "5001:443"
build:
context: .
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_HTTPS_PORT=5001
- ASPNETCORE_URLS=https://+:443;http://+:80
- ASPNETCORE_Kestrel__Certificates__Default__Password=fva_password
- ASPNETCORE_Kestrel__Certificates__Default__Path=/https/aspnetapp.pfx
volumes:
- ${HOME}/.aspnet/https:/https/
server:
image: fva:server
ports:
- "8080:80"
- "8081:443"
depends_on:
- "app_db"
container_name: fva_server
build:
context: .
environment:
- ConnectionStrings__DefaultConnection=User ID =postgres;Password=postgres;Server=app_db;Port=5432;Database=odin_db;Pooling=true;MinPoolSize=0;MaxPoolSize=20;Timeout=15;
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_HTTPS_PORT=8081
- ASPNETCORE_URLS=https://+:443;http://+:80
- ASPNETCORE_Kestrel__Certificates__Default__Password=fva_password
- ASPNETCORE_Kestrel__Certificates__Default__Path=/https/aspnetapp.pfx
volumes:
- ${HOME}/.aspnet/https:/https/
app_db:
image: postgres:latest
container_name: odin_db
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=odin_db
ports:
- "5432:5432"
restart: always
volumes:
- app_data:/var/lib/postgresql/data
volumes:
app_data: