-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
54 lines (54 loc) · 1.08 KB
/
docker-compose.yaml
File metadata and controls
54 lines (54 loc) · 1.08 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
52
53
54
version: '2'
services:
db:
restart: always
image: postgres:latest
container_name: backend-db
mem_limit: 300m
# mem_limit: 3g
# memswap_limit: 6g
environment:
POSTGRES_DB: wb-parser
POSTGRES_USER: postgres
POSTGRES_PASSWORD: PZdlxEGhBbquka234Ylink12
ports:
- 5432:5432
volumes:
- postgres-data:/var/lib/postgresql/data
command: 'postgres -c max_connections=9999'
networks:
backend:
ipv4_address: 192.168.1.2
logging:
driver: 'json-file'
options:
max-file: '2'
max-size: 750m
redis:
restart: always
image: marketguru/redis:latest
container_name: redis
mem_limit: 100m
ports:
- 6379:6379
volumes:
- redis-data:/data
networks:
backend:
ipv4_address: 192.168.1.3
logging:
driver: 'json-file'
options:
max-file: '2'
max-size: 750m
networks:
backend:
external:
name: backend
volumes:
postgres-data:
external:
name: postgres-data
redis-data:
external:
name: redis-data