-
Notifications
You must be signed in to change notification settings - Fork 5
/
common-services.yml
54 lines (52 loc) · 1.26 KB
/
common-services.yml
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
52
53
54
services:
base-postgres:
image: postgres:11.22-bookworm
shm_size: 2g
restart: always
command: postgres -c shared_buffers=2GB -c max_connections=500 -c shared_preload_libraries=pg_stat_statements
healthcheck:
test: ['CMD', 'pg_isready', '-U', 'postgres']
interval: 10s
timeout: 5s
ports:
- '127.0.0.1:5432:5432'
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
logging:
options:
max-size: 10m
max-file: 3
mode: non-blocking
max-buffer-size: 100m
driver: json-file
base-redis:
image: redis:7.0
command: redis-server --save 60 1
restart: always
healthcheck:
test: ['CMD', 'redis-cli', 'PING']
interval: 10s
timeout: 5s
logging:
options:
max-size: 10m
max-file: 3
mode: non-blocking
max-buffer-size: 100m
driver: json-file
volumes:
- /var/redis_data:/data
vector:
image: audius/vector:0.39.0-alpine
container_name: vector
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
logging:
options:
max-size: 10m
max-file: 3
mode: non-blocking
max-buffer-size: 100m
driver: json-file