WebashalarForML commited on
Commit
d8bbc7e
·
verified ·
1 Parent(s): 3617b76

Update docker-compose.dev.yml

Browse files
Files changed (1) hide show
  1. docker-compose.dev.yml +70 -70
docker-compose.dev.yml CHANGED
@@ -1,71 +1,71 @@
1
- version: '3.8'
2
-
3
- services:
4
- # Development version with hot reload
5
- chat-agent-dev:
6
- build:
7
- context: .
8
- dockerfile: Dockerfile.dev
9
- ports:
10
- - "5000:5000"
11
- environment:
12
- - FLASK_ENV=development
13
- - FLASK_DEBUG=True
14
- - DATABASE_URL=postgresql://chatuser:chatpass@postgres:5432/chat_agent_dev
15
- - REDIS_URL=redis://redis:6379/0
16
- depends_on:
17
- postgres:
18
- condition: service_healthy
19
- redis:
20
- condition: service_healthy
21
- volumes:
22
- - .:/app
23
- - /app/__pycache__
24
- - ./logs:/app/logs
25
- restart: unless-stopped
26
- networks:
27
- - chat-network
28
-
29
- # PostgreSQL database for development
30
- postgres:
31
- image: postgres:15-alpine
32
- environment:
33
- POSTGRES_DB: chat_agent_dev
34
- POSTGRES_USER: chatuser
35
- POSTGRES_PASSWORD: chatpass
36
- volumes:
37
- - postgres_dev_data:/var/lib/postgresql/data
38
- ports:
39
- - "5432:5432"
40
- healthcheck:
41
- test: ["CMD-SHELL", "pg_isready -U chatuser -d chat_agent_dev"]
42
- interval: 10s
43
- timeout: 5s
44
- retries: 5
45
- restart: unless-stopped
46
- networks:
47
- - chat-network
48
-
49
- # Redis for development
50
- redis:
51
- image: redis:7-alpine
52
- ports:
53
- - "6379:6379"
54
- volumes:
55
- - redis_dev_data:/data
56
- healthcheck:
57
- test: ["CMD", "redis-cli", "ping"]
58
- interval: 10s
59
- timeout: 5s
60
- retries: 5
61
- restart: unless-stopped
62
- networks:
63
- - chat-network
64
-
65
- volumes:
66
- postgres_dev_data:
67
- redis_dev_data:
68
-
69
- networks:
70
- chat-network:
71
  driver: bridge
 
1
+ version: '3.8'
2
+
3
+ services:
4
+ # Development version with hot reload
5
+ chat-agent-dev:
6
+ build:
7
+ context: .
8
+ dockerfile: Dockerfile.dev
9
+ ports:
10
+ - "7860:7860"
11
+ environment:
12
+ - FLASK_ENV=development
13
+ - FLASK_DEBUG=True
14
+ - DATABASE_URL=postgresql://chatuser:chatpass@postgres:5432/chat_agent_dev
15
+ - REDIS_URL=redis://redis:6379/0
16
+ depends_on:
17
+ postgres:
18
+ condition: service_healthy
19
+ redis:
20
+ condition: service_healthy
21
+ volumes:
22
+ - .:/app
23
+ - /app/__pycache__
24
+ - ./logs:/app/logs
25
+ restart: unless-stopped
26
+ networks:
27
+ - chat-network
28
+
29
+ # PostgreSQL database for development
30
+ postgres:
31
+ image: postgres:15-alpine
32
+ environment:
33
+ POSTGRES_DB: chat_agent_dev
34
+ POSTGRES_USER: chatuser
35
+ POSTGRES_PASSWORD: chatpass
36
+ volumes:
37
+ - postgres_dev_data:/var/lib/postgresql/data
38
+ ports:
39
+ - "5432:5432"
40
+ healthcheck:
41
+ test: ["CMD-SHELL", "pg_isready -U chatuser -d chat_agent_dev"]
42
+ interval: 10s
43
+ timeout: 5s
44
+ retries: 5
45
+ restart: unless-stopped
46
+ networks:
47
+ - chat-network
48
+
49
+ # Redis for development
50
+ redis:
51
+ image: redis:7-alpine
52
+ ports:
53
+ - "6379:6379"
54
+ volumes:
55
+ - redis_dev_data:/data
56
+ healthcheck:
57
+ test: ["CMD", "redis-cli", "ping"]
58
+ interval: 10s
59
+ timeout: 5s
60
+ retries: 5
61
+ restart: unless-stopped
62
+ networks:
63
+ - chat-network
64
+
65
+ volumes:
66
+ postgres_dev_data:
67
+ redis_dev_data:
68
+
69
+ networks:
70
+ chat-network:
71
  driver: bridge