File size: 699 Bytes
48795ea
fe41a05
 
 
7fd5271
 
fe41a05
 
 
14ba827
fe41a05
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
version: "3"

services:
  backend:
    build: ./app/Dockerfile
    command: uvicorn main:app --host 0.0.0.0
    networks:
      - caw
    ports:
      - "7860:7860"
    volumes:
      - ./config.yaml:/app/config.yaml
    environment:
      DATABASE_URL: postgresql://postgres:postgres@postgres:5432/postgres
  database:
    image: postgres:latest
    networks:
      - caw
    environment:
      POSTGRES_DB: postgres
      POSTGRES_USER: postgres
      POSTGRES_PASSWORD: postgres
    volumes:
      - database:/var/lib/postgresql/data
    ports:
      - "5432:5432"
  cache:
    image: redis:latest
    networks:
      - caw
    ports:
      - "6379:6379"

volumes:
  database:


networks:
  caw: