-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcompose.yaml
More file actions
25 lines (24 loc) · 853 Bytes
/
compose.yaml
File metadata and controls
25 lines (24 loc) · 853 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
name: netstr-relay-${NETSTR_ENVIRONMENT:-prod}
services:
app:
image: "${NETSTR_IMAGE:-bezysoftware/netstr:latest}"
restart: always
ports:
- "${NETSTR_PORT:-8080}:8080"
environment:
ConnectionStrings__NetstrDatabase: Host=db:5432;Database=Netsrt;Username=Netstr;Password=${NETSTR_DB_PASSWORD:?Password must be set}
RelayInformation__Version: ${NETSTR_VERSION:-v0.0.0}
ASPNETCORE_ENVIRONMENT: ${NETSTR_ENVIRONMENT_LONG}
depends_on:
- db
volumes:
- /data/${NETSTR_ENVIRONMENT:-prod}/netstr/logs:/app/logs
db:
image: "postgres:16-alpine"
restart: always
environment:
POSTGRES_PASSWORD: ${NETSTR_DB_PASSWORD:?Password must be set}
POSTGRES_USER: Netstr
POSTGRES_DB: Netstr
volumes:
- /data/${NETSTR_ENVIRONMENT:-prod}/postgres:/var/lib/postgresql/data