@@ -3,19 +3,15 @@ version: "3.8"
3
3
services :
4
4
api :
5
5
image : evo-ai-api:latest
6
- build : .
7
- container_name : evo-ai-api
8
6
depends_on :
9
- postgres :
10
- condition : service_healthy
11
- redis :
12
- condition : service_healthy
7
+ - postgres
8
+ - redis
13
9
ports :
14
10
- " 8000:8000"
15
11
environment :
16
12
POSTGRES_CONNECTION_STRING : postgresql://postgres:${POSTGRES_PASSWORD:-postgres}@postgres:5432/evo_ai
17
13
REDIS_HOST : redis
18
- REDIS_PORT : 6379
14
+ REDIS_PORT : ${REDIS_PORT:- 6379}
19
15
REDIS_PASSWORD : ${REDIS_PASSWORD:-""}
20
16
REDIS_SSL : " false"
21
17
REDIS_KEY_PREFIX : " a2a:"
@@ -29,7 +25,6 @@ services:
29
25
volumes :
30
26
- ./logs:/app/logs
31
27
- ./static:/app/static
32
- restart : unless-stopped
33
28
healthcheck :
34
29
test : ["CMD", "curl", "-f", "http://localhost:8000/"]
35
30
interval : 30s
@@ -41,12 +36,9 @@ services:
41
36
limits :
42
37
cpus : " 1"
43
38
memory : 1G
44
- networks :
45
- - evo-network
46
39
47
40
postgres :
48
41
image : postgres:14-alpine
49
- container_name : evo-ai-postgres
50
42
environment :
51
43
POSTGRES_USER : postgres
52
44
POSTGRES_PASSWORD : ${POSTGRES_PASSWORD:-postgres}
@@ -55,15 +47,12 @@ services:
55
47
- " ${POSTGRES_PORT:-5432}:5432"
56
48
volumes :
57
49
- postgres_data:/var/lib/postgresql/data
58
- restart : unless-stopped
59
50
healthcheck :
60
51
test : ["CMD-SHELL", "pg_isready -U postgres"]
61
52
interval : 10s
62
53
timeout : 5s
63
54
retries : 5
64
55
start_period : 10s
65
- networks :
66
- - evo-network
67
56
deploy :
68
57
resources :
69
58
limits :
@@ -72,8 +61,12 @@ services:
72
61
73
62
redis :
74
63
image : redis:alpine
75
- container_name : evo-ai-redis
76
- command : redis-server --appendonly yes ${REDIS_PASSWORD:+--requirepass ${REDIS_PASSWORD}}
64
+ command :
65
+ - redis-server
66
+ - --appendonly
67
+ - " yes"
68
+ - --requirepass
69
+ - " ${REDIS_PASSWORD}"
77
70
ports :
78
71
- " ${REDIS_PORT:-6379}:6379"
79
72
volumes :
@@ -83,9 +76,6 @@ services:
83
76
interval : 5s
84
77
timeout : 30s
85
78
retries : 50
86
- restart : unless-stopped
87
- networks :
88
- - evo-network
89
79
deploy :
90
80
resources :
91
81
limits :
@@ -97,8 +87,3 @@ volumes:
97
87
name : ${POSTGRES_VOLUME_NAME:-evo-ai-postgres-data}
98
88
redis_data :
99
89
name : ${REDIS_VOLUME_NAME:-evo-ai-redis-data}
100
-
101
- networks :
102
- evo-network :
103
- name : ${NETWORK_NAME:-evo-network}
104
- driver : bridge
0 commit comments