-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (40 loc) · 901 Bytes
/
docker-compose.yml
File metadata and controls
43 lines (40 loc) · 901 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
43
services:
app:
container_name: reagent_app
build:
context: .
dockerfile: Dockerfile.reagent
ports:
- "7860:7860"
env_file:
- .env
environment:
- REDIS_HOST=redis
- REDIS_PORT=6379
- REDIS_PASSWORD=${REDIS_PASSWORD}
networks:
- app-network
restart: no
depends_on:
redis:
condition: service_started
redis:
container_name: reagent_redis
image: redis:7-alpine
volumes:
- redis_data:/data
networks:
- app-network
restart: no
command: redis-server --appendonly yes --maxmemory 256mb --maxmemory-policy allkeys-lru --requirepass ${REDIS_PASSWORD}
healthcheck:
test: ["CMD", "redis-cli", "-a", "${REDIS_PASSWORD}", "ping"]
interval: 60s
timeout: 5s
retries: 3
volumes:
redis_data:
driver: local
networks:
app-network:
driver: bridge