-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
190 lines (175 loc) · 4.31 KB
/
Copy pathdocker-compose.yml
File metadata and controls
190 lines (175 loc) · 4.31 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
services:
api:
container_name: 'api'
tty: true
build:
context: .
dockerfile: ./app/Dockerfile
ports:
- '${API_PORT}:8000'
env_file:
- .env
volumes:
- './app:/app'
- '.env:/app/.env'
working_dir: /app
command: "fastapi dev main.py --host 0.0.0.0"
depends_on:
- 'database'
tinytroupe:
container_name: 'tinytroupe'
tty: true
build:
context: .
dockerfile: ./Dockerfiles/Dockerfile_tinytroupe
ports:
- 8003:8003
env_file:
- ./tinytroupe/.env
volumes:
- './tinytroupe:/app/'
working_dir: /app
command: "tail -f"
agno:
container_name: 'agno'
tty: true
build:
context: .
dockerfile: ./Dockerfiles/Dockerfile_agno
ports:
- 8002:8002
env_file:
- ./agno/.env
volumes:
- './agno:/app/'
working_dir: /app
command: "tail -f"
ollama:
image: docker.io/ollama/ollama:latest
ports:
- 7869:11434
volumes:
- .:/code
- ./ollama/ollama:/root/.ollama
container_name: ollama
pull_policy: always
tty: true
restart: always
environment:
- OLLAMA_KEEP_ALIVE=24h
- OLLAMA_HOST=0.0.0.0
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
php:
build: './sapi/docker/php'
ports: ['9000:9000']
volumes: ['./sapi/app/:/var/www/app:cached']
nginx:
build: './sapi/docker/nginx'
ports: ['80:80']
volumes: ['./sapi/app/:/var/www/app:cached']
database:
container_name: 'database'
image: 'pgvector/pgvector:pg17'
ports:
- '${FORWARD_DB_PORT:-5432}:5432'
environment:
PGPASSWORD: '${DB_PASSWORD:-secret}'
POSTGRES_DB: '${DB_DATABASE}'
POSTGRES_USER: '${DB_USERNAME}'
POSTGRES_PASSWORD: '${DB_PASSWORD:-secret}'
POSTGRES_EXTENSIONS: system_stats
volumes:
- 'db_data:/var/lib/postgresql/data'
- './app/migrations/init.sql:/docker-entrypoint-initdb.d/10-create-testing-database.sql'
healthcheck:
test: ["CMD", "pg_isready", "-q", "-d", "${DB_DATABASE}", "-U", "${DB_USERNAME}"]
# retries: 3
# timeout: 5s
rabbitmq:
container_name: 'rabbitmq'
image: 'rabbitmq:4.0-management'
ports:
- '5672:5672'
- '15672:15672'
healthcheck:
test: rabbitmq-diagnostics -q ping
register:
container_name: 'register'
build:
context: .
dockerfile: Dockerfiles/Dockerfile_register
command: "/bin/sh -c 'pymon main.py'"
working_dir: /register
tty: true
volumes:
- './register:/register'
depends_on:
rabbitmq:
condition: service_healthy
router:
container_name: 'router'
build:
context: .
dockerfile: Dockerfiles/Dockerfile_router
command: "/bin/sh -c 'pymon main.py'"
working_dir: /router
tty: true
volumes:
- './router:/router'
depends_on:
rabbitmq:
condition: service_healthy
model_1:
container_name: model_1
build: './multiagent_models/netlogo'
tty: true
command: "tail -f"
environment:
PYTHONUNBUFFERED: 1
model_file: "/multiagent_models/netlogo/m1/sugarscape_m1.nlogo"
experiment: "experiment1"
auto_run: "True"
api_uri: ${API_URI}
api_port: ${API_PORT}
llm_register: ${LLM_REGISTER}
volumes:
- ./multiagent_models/netlogo:/multiagent_models/netlogo
depends_on:
rabbitmq:
condition: service_healthy
model_2:
container_name: model_2
build:
context: .
dockerfile: Dockerfile_NETLOGO
tty: true
command: "tail -f"
environment:
- PYTHONUNBUFFERED=1
- model_file=/multiagent_models/netlogo/m2/sugarscape_m2.nlogo
- experiment=experiment2
- auto_run=True
- api_uri=api
- api_port=8000
volumes:
- ./multiagent_models/netlogo:/multiagent_models/netlogo
depends_on:
rabbitmq:
condition: service_healthy
pgadmin:
container_name: pgadmin
image: "dpage/pgadmin4:9.1.0"
ports:
- "8080:80"
environment:
- PGADMIN_DEFAULT_EMAIL=admin@mail.com
- PGADMIN_DEFAULT_PASSWORD=admin
volumes:
db_data:
driver: local