-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (43 loc) · 1.21 KB
/
docker-compose.yml
File metadata and controls
43 lines (43 loc) · 1.21 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
services:
redis:
image: redis:alpine
restart: always
volumes:
- ./docker/redis:/data
command:
# Enable AOF persistence (--appendonly yes)
# and configure RDB snapshotting (e.g., save after 60 seconds if 10000 changes, etc.)
# RDB is enabled by default, but explicitly setting save points is good practice.
- redis-server
- --appendonly
- "yes"
- --save
- "900 1" # Save after 900 seconds (15 min) if at least 1 change
- --save
- "300 10" # Save after 300 seconds (5 min) if at least 10 changes
- --save
- "60 10000" # Save after 60 seconds (1 min) if at least 10000 changes
- --appendfsync
- "everysec" # Recommended AOF flush policy
ports:
- 6379:6379
socks-proxy:
image: kroniak/ssh-client
restart: always
volumes:
- ./docker/config/ssh:/root/.ssh
ports:
- 1080:1080
command: ssh -N socks-proxy
iml:
image: impresso_middle_layer
restart: always
profiles:
# Only active when running `docker-compose --profile iml up`
- iml
ports:
- 3030:3030
volumes:
- ./config:/impresso-middle-layer/config
environment:
- NODE_ENV=production