~cytrogen/evi-run

ref: 6300c1d24c20c581bf663eb5278eca6a3e87061e evi-run/docker-compose.yml -rw-r--r-- 969 bytes
6300c1d2 — Alex Flash Update README.md 5 months ago
                                                                                
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
version: '3.8'

services:
  postgres:
    image: postgres:16
    container_name: postgres_agent_db
    environment:
      POSTGRES_USER: "${POSTGRES_USER}"
      POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
      POSTGRES_DB: "${POSTGRES_DB}"
    ports:
      - "5434:5432"
    volumes:
      - ./data/postgres/postgres_data:/var/lib/postgresql/data
    restart: unless-stopped


  redis:
    image: redis:latest
    container_name: redis_agent
    ports:
      - "6380:6379"
    volumes:
      - ./data/redis/data:/data
    restart: unless-stopped

  bot:
    build:
      context: .
      dockerfile: Dockerfile
    container_name: bot_agent
    depends_on:
      - postgres
      - redis
      - fastapi
    volumes:
      - ./data/images:/app/images
    restart: unless-stopped

  fastapi:
    build:
      context: .
      dockerfile: Dockerfile_fastapi
    container_name: fastapi_agent
    ports:
      - "8001:8000"
    depends_on:
      - postgres
      - redis