File size: 547 Bytes
5854e13
 
 
 
 
 
b780b82
5854e13
71ad4a3
 
5854e13
 
 
 
 
71ad4a3
b780b82
71ad4a3
 
 
 
5854e13
 
 
 
 
 
 
 
 
 
71ad4a3
 
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
version: '3.8'

services:
  app:
    build: .
    ports:
      - "7860:7860"
    volumes:
      - .:/app:ro
      - app_data:/tmp
    env_file:
      - .env
    depends_on:
      - redis
    restart: unless-stopped
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:7860/health"]
      interval: 30s
      timeout: 10s
      retries: 3
      start_period: 10s

  redis:
    image: redis:7-alpine
    ports:
      - "6379:6379"
    volumes:
      - redis_data:/data
    restart: unless-stopped

volumes:
  redis_data:
  app_data: