Revision 6e750c094fe302e0b66a5de030a4de7e3807a018 authored by AlasDiablo on 11 July 2024, 07:07:52 UTC, committed by AlasDiablo on 11 July 2024, 07:07:52 UTC
1 parent 84d6967
docker-compose.dev.yml
version: '3'
services:
node:
image: node:18.19-bookworm
extra_hosts: # for linux hosts since version 20.10
- host.docker.internal:host-gateway
volumes:
- .:/app
working_dir: /app
environment:
DEBUG: ${DEBUG}
NODE_ENV: ${NODE_ENV}
NODE_OPTIONS: ${NODE_OPTIONS}
http_proxy: ${http_proxy}
https_proxy: ${https_proxy}
no_proxy: 'localhost,127.0.0.1,'
EZMASTER_PUBLIC_URL: ${EZMASTER_PUBLIC_URL}
REDIS_URL: 'redis://redis:6379'
WORKERS_URL: 'http://workers:31976'
CI: ${CI}
links:
- mongo
- redis
- workers
depends_on:
- mongo
- redis
- workers
ports:
- "3000:3000"
- "9229:9229" # Enable Nodemon inspect to attach to Docker Node
command: npm run development:api
dev-server: ## Enable hot-reload in development
image: node:18.19-bookworm
volumes:
- .:/app
working_dir: /app
environment:
NODE_ENV: development
ports:
- "8080:8080"
command: npm run development:app
mongo:
image: mongo:4.4.24-focal
ports:
- "27017:27017"
redis:
image: redis:6
ports:
- "6379:6379"
workers:
image: node:18.19-bookworm
volumes:
- .:/app
working_dir: /app
environment:
DEBUG: ${DEBUG}
NODE_ENV: ${NODE_ENV}
NODE_OPTIONS: ${NODE_OPTIONS}
http_proxy: ${http_proxy}
https_proxy: ${https_proxy}
no_proxy: 'localhost,127.0.0.1'
EZS_TITLE: 'Lodex internals workers'
EZS_DESCRIPTION: 'All scripts through a webserver'
EZS_METRICS: 'true'
EZS_CONCURRENCY: '4'
EZS_CONTINUE_DELAY: '60'
EZS_NSHARDS: '31'
EZS_CACHE: 'false'
EZS_VERBOSE: 'true'
ports:
- "31976:31976"
command: npm run production:workers
links:
- mongo
depends_on:
- mongo
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...