-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
60 lines (59 loc) · 2.19 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
version: "3.8"
services:
frontend-server:
build:
context: ./frontend
dockerfile: Dockerfile
args:
API_BASE_URL: "/" # must end with slash
restart: always
ports:
- 5001:80
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./nginx/conf.d:/etc/nginx/conf.d:ro
depends_on:
- backend-api
backend-api:
build:
context: ./backend
dockerfile: ./HeatingDataMonitor.API/Dockerfile
restart: always
expose:
- 80
environment:
Urls: "http://+:80"
ASPNETCORE_ENVIRONMENT: "Production"
ConnectionStrings__HeatingDataDatabase: "Server=database;Port=5432;Database=heating_data_monitor;User Id=api_user;Password=dontworrythispasswordwillchangeinproduction;Max Auto Prepare=10;Auto Prepare Min Usages=2;"
depends_on:
- database
signal-cli-rest-api:
image: bbernhard/signal-cli-rest-api:latest
restart: always
expose:
- 8080 # just FYI, no operational impact
# ports:
# - 8080:8080 # only for testing, shouldn't expose the signal api otherwise
environment:
- MODE=native
- AUTO_RECEIVE_SCHEDULE=0 0 * * * # at midnight, call receive to update the cryptographic keys etc.
volumes:
- /home/pi/.local/share/signal-cli:/home/.local/share/signal-cli
database:
image: timescale/timescaledb:latest-pg14
restart: always
ports:
- 5432:5432
environment:
POSTGRES_PASSWORD: "dontworrythispasswordwillchangeinproduction"
POSTGRES_DB: "heating_data_monitor"
volumes:
- pgdata:/var/lib/postgresql/data
- ./backend/HeatingDataMonitor.Database/dbCreate.sql:/docker-entrypoint-initdb.d/01_init.sql:ro
- ./backend/HeatingDataMonitor.API/createDbUser.sql:/docker-entrypoint-initdb.d/02_createAPIUser.sql:ro
- ./backend/HeatingDataMonitor.Receiver/createDbUser.sql:/docker-entrypoint-initdb.d/03_createReceiverUser.sql:ro
- ./backend/HeatingDataMonitor.Database/importOldData.sh:/docker-entrypoint-initdb.d/04_importOldData.sh:ro
- ./backend/HeatingDataMonitor.Database/createBackupUser.sql:/docker-entrypoint-initdb.d/05_createBackupUser.sql:ro
- ./old-data.csv:/old-data.csv:ro
volumes:
pgdata: