-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeft.yml
54 lines (50 loc) · 1.27 KB
/
deft.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
version: "3.8"
networks:
deft-network:
volumes:
db-data:
services:
db:
image: postgres:14.11
tty: true
container_name: deft_db_1
volumes:
- db-data:/var/lib/postgresql/data
- ./db/dumps:/dumps
networks:
- deft-network
env_file:
- ./.env
ports:
- "54322:5432"
environment:
- POSTGRES_DATABASE=deft
- POSTGRES_USER= deft
- POSTGRES_PASSWORD=${DB_PASSWORD}
- TZ=Etc/Greenwich
- PGTZ=Etc/Greenwich
healthcheck:
test: ["CMD", "pg_isready", "-U", "deft", "-d", "deft"]
interval: 30s
timeout: 10s
retries: 3
backend:
image: risctool.azurecr.io/risctool:2.0
tty: true
networks:
- deft-network
env_file:
- ./.env
volumes:
- ./settings:/code/backend/backend
- ./logs/backend.log:/code/backend/deft_error.log
- ./nc_files/:/code/nc_files
- ./risk_models/:/code/risk_models
- ./power_systems/:/code/power_systems
- ./power_system_csv_files/:/code/power_system_csv_files
- ./load_profiles/:/code/load_profiles
- ./risk_models_xlsx_files/:/code/risk_models_xlsx_files
- ./risk_result_reports/:/code/risk_result_reports
#- /mnt/deft_imports/input:/code/share
ports:
- "8000:8000"