-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
166 lines (150 loc) · 3.91 KB
/
docker-compose.dev.yml
File metadata and controls
166 lines (150 loc) · 3.91 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
services:
postgres:
ports:
- "5432:5432"
opensearch:
environment:
- cluster.name=opensearch-cluster
- node.name=opensearch-misp1
- discovery.type=single-node
- bootstrap.memory_lock=true
- "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m"
- "DISABLE_INSTALL_DEMO_CONFIG=true"
- "DISABLE_SECURITY_PLUGIN=true"
- "OPENSEARCH_PERFORMANCE_ANALYZER_ENABLED=false"
mem_limit: 2g
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
ports:
- "9200:9200"
- "9600:9600"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9200"]
interval: 30s
timeout: 10s
retries: 5
api:
mem_limit: 4g
build:
context: ./api
dockerfile: Dockerfile
target: dev
ports:
- "8080:80"
- "5677:5677"
- "5678:5678"
entrypoint: [ "bash", "-c", "./entrypoint.dev.sh" ]
environment:
WATCHFILES_FORCE_POLLING: true
WATCHFILES_POLLING_INTERVAL: 1
volumes:
- ./api:/code
extra_hosts:
- "host.docker.internal:host-gateway"
worker:
ports:
- "5679:5679"
command:
[
"sh",
"-c",
"poetry run python -m debugpy --listen 0.0.0.0:5679 -m celery -A app.worker.tasks worker --loglevel=debug --hostname=worker1@%h --concurrency=1 --pool=solo",
]
volumes:
- ./api:/code
extra_hosts:
- "host.docker.internal:host-gateway"
beat:
ports:
- "5680:5680"
command:
[
"sh",
"-c",
"poetry run python -m debugpy --listen 0.0.0.0:5680 -m celery -A app.worker.tasks beat --loglevel=debug --scheduler redbeat.RedBeatScheduler"
]
volumes:
- ./api:/code
extra_hosts:
- "host.docker.internal:host-gateway"
flower:
ports:
- "5555:5555"
command: poetry run celery -A app.worker.tasks flower --loglevel=debug --persistent=True --auto_refresh=True --state_save_interval=1000 -n worker1@%h
frontend:
command: [ nginx-debug, '-g', 'daemon off;' ]
mailhog:
image: mailhog/mailhog
ports:
- "8025:8025"
- "1025:1025"
networks:
- backend
pgadmin:
image: dpage/pgadmin4
restart: always
ports:
- "5050:80"
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD}
dashboards:
environment:
OPENSEARCH_HOSTS: "http://${OPENSEARCH_HOSTNAME:-opensearch}:${OPENSEARCH_PORT:-9200}"
DISABLE_SECURITY_DASHBOARDS_PLUGIN: true
healthcheck:
test:
[
"CMD-SHELL",
"curl -s --user admin:$$OPENSEARCH_DASHBOARDS_PASSWORD -k -X GET http://localhost:5601/api/status | grep '\"state\":\"green\"'"
]
redis-commander:
image: rediscommander/redis-commander
depends_on:
- redis
environment:
REDIS_HOST: ${REDIS_HOSTNAME:-redis}
REDIS_PORT: ${REDIS_PORT:-6379}
ports:
- "8081:8081"
networks:
- backend
garage:
volumes:
- garage-data:/var/lib/garage/data
- garage-meta:/var/lib/garage/meta
- ./garage.dev.toml:/etc/garage.toml:ro
garage-webui:
image: khairul169/garage-webui:latest
container_name: garage-webui
restart: unless-stopped
volumes:
- ./garage.dev.toml:/etc/garage.toml:ro
ports:
- 3909:3909
environment:
API_BASE_URL: "http://garage:3903"
S3_ENDPOINT_URL: "http://garage:3900"
networks:
- backend
mcp-inspector:
image: ghcr.io/modelcontextprotocol/inspector:latest
ports:
- "6274:6274"
- "6277:6277"
environment:
HOST: "0.0.0.0"
CLIENT_PORT: "6274"
MCP_PROXY_FULL_ADDRESS: "http://localhost:6277"
MCP_AUTO_OPEN_ENABLED: "false"
ALLOWED_ORIGINS: "http://localhost:6274,http://127.0.0.1:6274"
networks:
- backend
modules:
ports:
- "6666:6666"