forked from AprilNEA/ChatGPT-Admin-Web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
50 lines (46 loc) · 888 Bytes
/
docker-compose.yml
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"
services:
chat:
build:
context: .
dockerfile: apps/chat/Dockerfile
networks:
- caw
ports:
- "3000:3000"
volumes:
- ./config.yaml:/app/config.yaml
server:
build:
context: .
dockerfile: apps/server/Dockerfile
networks:
- caw
ports:
- "3001:3001"
volumes:
- ./config.yaml:/app/config.yaml
environment:
DATABASE_URL: postgresql://postgres:postgres@postgres:5432/postgres
postgres:
image: postgres:latest
networks:
- caw
environment:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
redis:
image: redis:latest
networks:
- caw
ports:
- "6379:6379"
volumes:
postgres_data:
networks:
caw: