-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
45 lines (42 loc) · 1 KB
/
compose.yaml
File metadata and controls
45 lines (42 loc) · 1 KB
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
services:
web:
build: .
ports:
- "4141:4141"
restart: unless-stopped
depends_on:
database:
condition: service_healthy
restart: true
valkey:
condition: service_healthy
restart: true
database:
image: postgres:16
container_name: tio-relay-database
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"]
interval: 10s
timeout: 5s
retries: 5
env_file: .env
environment:
- PG_DATA=/var/lib/postgresql/data
- POSTGRES_DB=tio
volumes:
- tio-relay-database_pg_data:/var/lib/postgresql/data
valkey:
image: valkey/valkey:latest
container_name: tio-relay-valkey
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "redis-cli ping | grep PONG"]
interval: 10s
timeout: 5s
retries: 5
volumes:
- tio-relay-valkey_data:/data
volumes:
tio-relay-database_pg_data:
tio-relay-valkey_data: