-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (46 loc) · 1.29 KB
/
docker-compose.yml
File metadata and controls
50 lines (46 loc) · 1.29 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
46
47
48
49
50
name: ringee-stack
services:
ringee-postgres:
image: postgres:17-alpine
container_name: ringee-postgres
ports:
- "${POSTGRES_PORT:-5432}:5432"
environment:
POSTGRES_USER: ${POSTGRES_USER:-ringee-user}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-ringee-password}
POSTGRES_DB: ${POSTGRES_DB:-ringee-db-local}
LANG: C.UTF-8
POSTGRES_INITDB_ARGS: "--encoding=UTF-8 --locale=C"
volumes:
- ringee_pg_data:/var/lib/postgresql/data
- ./initdb:/docker-entrypoint-initdb.d:ro
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-ringee-user} -d ${POSTGRES_DB:-ringee-db-local} -h 127.0.0.1 || exit 1"]
interval: 10s
timeout: 5s
retries: 6
restart: unless-stopped
networks:
- ringee-network
ringee-redis:
image: redis:7.4-alpine
container_name: ringee-redis
command: ["redis-server", "--save", "60", "1", "--loglevel", "warning"]
ports:
- "${REDIS_PORT:-6379}:6379"
volumes:
- ringee_redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
networks:
- ringee-network
volumes:
ringee_pg_data:
ringee_redis_data:
networks:
ringee-network:
driver: bridge