-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
51 lines (48 loc) · 1.2 KB
/
docker-compose.dev.yml
File metadata and controls
51 lines (48 loc) · 1.2 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
51
services:
postgres:
image: pgvector/pgvector:pg17
container_name: 'postgresql'
networks:
- network
ports:
- '5432:5432'
env_file:
- .env
volumes:
- ./packages/database/initdb:/docker-entrypoint-initdb.d
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}']
interval: 10s
timeout: 5s
retries: 5
command: >
postgres
-c logging_collector=on
-c log_directory=/etc/postgresql/log
-c log_file_mode=0664
-c log_filename='postgresql-%Y-%m-%d_%H:%M:%S.log'
restart: unless-stopped
redis:
image: redis:7-alpine
container_name: 'snak_redis'
networks:
- network
ports:
- '127.0.0.1:6379:6379'
volumes:
- redis_data:/data
env_file:
- .env
command: ["redis-server", "--appendonly", "yes", "--requirepass", "${REDIS_PASSWORD:?REDIS_PASSWORD is required}"]
healthcheck:
test: ["CMD", "redis-cli", "-a", "${REDIS_PASSWORD:?REDIS_PASSWORD is required}", "ping"]
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
volumes:
redis_data:
driver: local
networks:
network:
driver: bridge