-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (38 loc) · 886 Bytes
/
docker-compose.yml
File metadata and controls
42 lines (38 loc) · 886 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
services:
postgres:
container_name: postgres
image: postgres:16.0
restart: always
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_NAME}
healthcheck:
test: [ "CMD-SHELL", "sh -c 'pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}'" ]
interval: 10s
timeout: 3s
retries: 3
ports:
- "${POSTGRES_PORT}:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- shock-stream_backend
redis:
container_name: redis
image: redis:7.0
restart: always
ports:
- "${REDIS_PORT}:6379"
command: >
redis-server
--requirepass ${REDIS_PASSWORD}
volumes:
- redis_data:/data
networks:
- shock-stream_backend
volumes:
postgres_data:
redis_data:
networks:
shock-stream_backend: