-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yaml
44 lines (44 loc) · 1.13 KB
/
docker-compose.yaml
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
services:
web:
image: 'andersonskm/malheatmap:latest'
deploy:
resources:
limits:
cpus: '${DOCKER_WEB_CPUS:-0.5}'
memory: '${DOCKER_WEB_MEMORY:-512mb}'
healthcheck:
test: '${DOCKER_WEB_HEALTHCHECK_TEST:-curl localhost:3000/up}'
interval: 60s
timeout: 5s
start_period: 5s
retries: 3
environment:
RAILS_MASTER_KEY: '${RAILS_MASTER_KEY}'
REDIS_URL: '${REDIS_URL}'
networks:
coolify: null
volumes:
- '/storage/malheatmap:/rails/storage'
restart: unless-stopped
container_name: malheatmap-web
worker:
image: 'andersonskm/malheatmap:latest'
command: 'bin/rails solid_queue:start'
deploy:
resources:
limits:
cpus: '${DOCKER_WORKER_CPUS:-2}'
memory: '${DOCKER_WORKER_MEMORY:-2gb}'
environment:
RAILS_MASTER_KEY: '${RAILS_MASTER_KEY}'
REDIS_URL: '${REDIS_URL}'
volumes:
- '/storage/malheatmap:/rails/storage'
networks:
coolify: null
restart: unless-stopped
container_name: malheatmap-worker
networks:
coolify:
name: coolify
external: true