This repository has been archived by the owner on Sep 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
90 lines (80 loc) · 1.74 KB
/
docker-compose.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
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
version: '2.4'
services:
nginx:
image: nginx:alpine
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
depends_on:
- app
- redis
- phpredisadmin
- certbot
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
app:
build: .
ports:
- "8080:8080"
depends_on:
- redis
countall:
build: .
command: "node countAll.js"
depends_on:
- redis
- app
env_file:
- 'variables.env'
countlastmonth:
build: .
command: "node countLastMonth.js"
depends_on:
- redis
- app
env_file:
- 'variables.env'
redis-overcommit:
build: https://github.com/bkuhl/redis-overcommit-on-host.git
restart: 'no'
privileged: true
volumes:
- /proc/sys/vm:/mnt/vm
redis:
image: "redis:alpine"
volumes:
- redis-data:/data
depends_on:
- redis-overcommit
trends:
build: trends
depends_on:
- redis
env_file:
- 'variables.env'
volumes:
- trends-data:/opt/trends/es_dumps
cpus: 1.5
mem_limit: 6G
oom_kill_disable: true
phpredisadmin:
image: erikdubbelboer/phpredisadmin:latest
environment:
- REDIS_1_HOST=redis
- REDIS_1_PORT=6379
depends_on:
- redis
env_file:
- secret.env
certbot:
image: certbot/certbot
volumes:
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
volumes:
redis-data:
trends-data: