Skip to content

Commit b4dd5d4

Browse files
Copilotkraktus
andauthored
Refactor docker-compose.yml to use default network configuration (#173)
* Initial plan * Refactor network configuration to use default network Co-authored-by: kraktus <56031107+kraktus@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: kraktus <56031107+kraktus@users.noreply.github.com>
1 parent 2ffee99 commit b4dd5d4

1 file changed

Lines changed: 2 additions & 47 deletions

File tree

docker-compose.yml

Lines changed: 2 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ services:
99
timeout: 30s
1010
start_period: 0s
1111
retries: 30
12-
networks:
13-
- lila-network
1412
volumes:
1513
- ./repos/lila:/lila
1614
- ./scripts:/scripts
@@ -21,16 +19,12 @@ services:
2119
image: mongo:7.0.20-jammy
2220
restart: unless-stopped
2321
command: mongod --bind_ip_all --replSet rs0
24-
networks:
25-
- lila-network
2622
profiles:
2723
- base
2824

2925
redis:
3026
image: redis:7.4.3-alpine3.21
3127
restart: unless-stopped
32-
networks:
33-
- lila-network
3428
profiles:
3529
- base
3630

@@ -45,8 +39,6 @@ services:
4539
working_dir: /lila
4640
entrypoint: ./lila.sh run
4741
restart: unless-stopped
48-
networks:
49-
- lila-network
5042
environment:
5143
- LILA_DOMAIN=${LILA_DOMAIN:-localhost:8080}
5244
- LILA_URL=${LILA_URL:-http://localhost:8080}
@@ -74,8 +66,6 @@ services:
7466
working_dir: /lila-ws
7567
entrypoint: sbt run -Dconfig.file=/lila-ws.conf
7668
restart: unless-stopped
77-
networks:
78-
- lila-network
7969
environment:
8070
- LILA_URL=${LILA_URL:-http://localhost:8080}
8171
- ENABLE_MONITORING=${ENABLE_MONITORING:-false}
@@ -88,8 +78,6 @@ services:
8878
nginx:
8979
image: nginx:1.27.5-alpine3.21-slim
9080
restart: unless-stopped
91-
networks:
92-
- lila-network
9381
ports:
9482
- 8080:80
9583
volumes:
@@ -175,8 +163,6 @@ services:
175163
user: ${USER_ID}:${GROUP_ID}
176164
environment:
177165
- LILA_ENGINE_LOG=lila_engine=debug,tower_http=debug
178-
networks:
179-
- lila-network
180166
ports:
181167
- 9666:9666
182168
volumes:
@@ -202,8 +188,6 @@ services:
202188
- REDIS_HOST=redis
203189
# - HTTP_API_LOGGER=true
204190
restart: unless-stopped
205-
networks:
206-
- lila-network
207191
volumes:
208192
- ./repos/lila-fishnet:/lila-fishnet
209193
profiles:
@@ -216,8 +200,6 @@ services:
216200
- ENDPOINT=http://lila_fishnet:9665/fishnet
217201
- MAX_BACKOFF=5
218202
- STATS_FILE=/stats.json
219-
networks:
220-
- lila-network
221203
profiles:
222204
- stockfish-play
223205

@@ -228,17 +210,13 @@ services:
228210
- ENDPOINT=http://lila:9663/fishnet
229211
- MAX_BACKOFF=5
230212
- STATS_FILE=/stats.json
231-
networks:
232-
- lila-network
233213
profiles:
234214
- stockfish-analysis
235215

236216
python:
237217
build:
238218
context: docker
239219
dockerfile: python.Dockerfile
240-
networks:
241-
- lila-network
242220
volumes:
243221
- ./repos/berserk:/berserk
244222
- ./repos/lila-db-seed:/lila-db-seed
@@ -257,8 +235,6 @@ services:
257235
user: ${USER_ID}:${GROUP_ID}
258236
environment:
259237
- CI=1 # to disable pnpm install prompts
260-
networks:
261-
- lila-network
262238
volumes:
263239
- ./repos/lila:/lila
264240
- ./repos/chessground:/chessground
@@ -275,8 +251,6 @@ services:
275251
- http.cors.allow-origin=/.*/
276252
- http.cors.enabled=true
277253
- xpack.security.enabled=false
278-
networks:
279-
- lila-network
280254
ports:
281255
- 9200:9200
282256
profiles:
@@ -289,8 +263,6 @@ services:
289263
- ./conf/elasticvue.json:/usr/share/nginx/html/api/default_clusters.json
290264
ports:
291265
- 8092:8080
292-
networks:
293-
- lila-network
294266
profiles:
295267
- search
296268

@@ -313,8 +285,6 @@ services:
313285
- OTEL_TRACES_EXPORTER=none
314286
ports:
315287
- 9673:9673
316-
networks:
317-
- lila-network
318288
volumes:
319289
- ./repos/lila-search:/lila-search
320290
profiles:
@@ -345,8 +315,6 @@ services:
345315
- INGESTOR_STUDY_START_AT=1344789787
346316
- OTEL_METRICS_EXPORTER=none
347317
- OTEL_TRACES_EXPORTER=none
348-
networks:
349-
- lila-network
350318
volumes:
351319
- ./repos/lila-search:/lila-search
352320
profiles:
@@ -360,8 +328,6 @@ services:
360328
user: ${USER_ID}:${GROUP_ID}
361329
ports:
362330
- 6175:6175
363-
networks:
364-
- lila-network
365331
volumes:
366332
- ./repos/lila-gif:/lila-gif
367333
profiles:
@@ -375,8 +341,6 @@ services:
375341
user: ${USER_ID}:${GROUP_ID}
376342
ports:
377343
- 9054:9054
378-
networks:
379-
- lila-network
380344
volumes:
381345
- ./repos/lila-push:/lila-push
382346
- ./conf/private.pem:/lila-push/private.pem
@@ -389,8 +353,6 @@ services:
389353
dockerfile: picfit.Dockerfile
390354
ports:
391355
- 3001:3001
392-
networks:
393-
- lila-network
394356
volumes:
395357
- ./conf/picfit.json:/mnt/config.json
396358
- ./docker/assets:/uploads
@@ -402,8 +364,6 @@ services:
402364
restart: unless-stopped
403365
ports:
404366
- 8025:8025
405-
networks:
406-
- lila-network
407367
profiles:
408368
- email
409369

@@ -415,8 +375,6 @@ services:
415375
environment:
416376
- ME_CONFIG_BASICAUTH=false
417377
- ME_CONFIG_MONGODB_SERVER=mongodb
418-
networks:
419-
- lila-network
420378
depends_on:
421379
- mongodb
422380
profiles:
@@ -428,8 +386,6 @@ services:
428386
- ./conf/prometheus.yml:/etc/prometheus/prometheus.yml
429387
ports:
430388
- 9090:9090
431-
networks:
432-
- lila-network
433389
profiles:
434390
- monitoring
435391

@@ -445,11 +401,10 @@ services:
445401
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=secret
446402
- DOCKER_INFLUXDB_INIT_ORG=lila-docker
447403
- DOCKER_INFLUXDB_INIT_BUCKET=kamon
448-
networks:
449-
- lila-network
450404
profiles:
451405
- monitoring
452406

453407
networks:
454-
lila-network:
408+
default:
409+
name: lila-network
455410
driver: bridge

0 commit comments

Comments
 (0)