forked from PeggyJV/il-loss-charts
-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.dev.yml
41 lines (39 loc) · 1001 Bytes
/
docker-compose.dev.yml
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
version: "3.1"
services:
somm_app:
image: somm_app
build: .
container_name: somm_app
# Run with datadog agent
# entrypoint: ["/app/entrypoint.sh"]
command: ["pm2-runtime", "packages/server/dist/www.js"]
links:
- redis_app
ports:
- "4000:4000"
env_file: ./.env
environment:
- API_SERVER_PORT=4000
- REDIS_URL=redis_app
- REDIS_PORT=6380
somm_worker:
image: somm_app
build: .
container_name: somm_worker
# Run with datadog agent
# entrypoint: ["/app/worker-entrypoint.sh"]
command: ["pm2-runtime", "packages/workers/dist/scheduler.js"]
links:
- redis_app
env_file: ./.env
environment:
- REDIS_URL=redis_app
- REDIS_PORT=6380
- WORKER_CACHE_WARMER=true
- WORKER_CACHE_WARMER_CRON="*/5 * * * *"
redis_app:
image: redis:alpine
container_name: redis_app
command: ["redis-server", "--bind", "redis_app", "--port", "6380"]
ports:
- "6380:6380"