forked from Countly/countly-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
85 lines (79 loc) · 3.84 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
version: "3.7"
volumes:
mongodb_data:
networks:
countly:
services:
mongodb:
image: 'bitnami/mongodb:3.6.14'
environment:
- MONGODB_USERNAME
- MONGODB_PASSWORD
- MONGODB_DATABASE
volumes:
- 'mongodb_data:/bitnami'
networks:
countly:
countly-api:
image: 'countly/api:19.08.1'
# Enterprise Edition: image: 'gcr.io/countly-01/api:19.08.1'
environment:
- COUNTLY_PLUGINS=mobile,web,desktop,plugins,density,locale,browser,sources,views,enterpriseinfo,logger,systemlogs,errorlogs,populator,reports,crashes,push,star-rating,slipping-away-users,compare,server-stats,dbviewer,assistant,plugin-upload,times-of-day,compliance-hub,video-intelligence-monetization,alerts,onboarding"
# Enterprise Edition: - COUNTLY_PLUGINS=mobile,web,desktop,plugins,density,locale,browser,sources,views,drill,funnels,concurrent_users,retention_segments,revenue,logger,systemlogs,errorlogs,populator,reports,crashes,push,block,restrict,users,geo,star-rating,slipping-away-users,compare,server-stats,dashboards,assistant,flows,dbviewer,cohorts,crash_symbolication,crashes-jira,groups,white-labeling,plugin-upload,alerts,times-of-day,compliance-hub,onboarding,remote-config,formulas,ab-testing
- COUNTLY_CONFIG_API_MONGODB_HOST=mongodb
- COUNTLY_CONFIG_API_MONGODB_USERNAME=${MONGODB_USERNAME}
- COUNTLY_CONFIG_API_MONGODB_PASSWORD=${MONGODB_PASSWORD}
- COUNTLY_CONFIG_API_MONGODB_DB=${MONGODB_DATABASE}
- COUNTLY_CONFIG_FRONTEND_MONGODB_HOST=mongodb
- COUNTLY_CONFIG_FRONTEND_MONGODB_USERNAME=${MONGODB_USERNAME}
- COUNTLY_CONFIG_FRONTEND_MONGODB_PASSWORD=${MONGODB_PASSWORD}
- COUNTLY_CONFIG_FRONTEND_MONGODB_DB=${MONGODB_DATABASE}
deploy:
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
networks:
countly:
depends_on:
- mongodb
countly-frontend:
image: 'countly/frontend:19.08.1'
# Enterprise Edition: image: 'gcr.io/countly-01/api:19.08.1'
environment:
- COUNTLY_PLUGINS=mobile,web,desktop,plugins,density,locale,browser,sources,views,enterpriseinfo,logger,systemlogs,errorlogs,populator,reports,crashes,push,star-rating,slipping-away-users,compare,server-stats,dbviewer,assistant,plugin-upload,times-of-day,compliance-hub,video-intelligence-monetization,alerts,onboarding"
# Enterprise Edition: - COUNTLY_PLUGINS=mobile,web,desktop,plugins,density,locale,browser,sources,views,drill,funnels,concurrent_users,retention_segments,revenue,logger,systemlogs,errorlogs,populator,reports,crashes,push,block,restrict,users,geo,star-rating,slipping-away-users,compare,server-stats,dashboards,assistant,flows,dbviewer,cohorts,crash_symbolication,crashes-jira,groups,white-labeling,plugin-upload,alerts,times-of-day,compliance-hub,onboarding,remote-config,formulas,ab-testing
- COUNTLY_CONFIG_API_MONGODB_HOST=mongodb
- COUNTLY_CONFIG_API_MONGODB_USERNAME=${MONGODB_USERNAME}
- COUNTLY_CONFIG_API_MONGODB_PASSWORD=${MONGODB_PASSWORD}
- COUNTLY_CONFIG_FRONTEND_MONGODB_HOST=mongodb
- COUNTLY_CONFIG_FRONTEND_MONGODB_USERNAME=${MONGODB_USERNAME}
- COUNTLY_CONFIG_FRONTEND_MONGODB_PASSWORD=${MONGODB_PASSWORD}
- COUNTLY_CONFIG_FRONTEND_MONGODB_DB=${MONGODB_DATABASE}
networks:
countly:
depends_on:
- mongodb
deploy:
# There is usually no need in multiple frontends, so throttling down resources for it
mode: global
resources:
limits:
cpus: '0.5'
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
nginx:
image: 'bitnami/nginx'
ports:
- '80:8080'
volumes:
- './bin/docker/nginx.server.conf:/opt/bitnami/nginx/conf/server_blocks/countly.conf:ro'
networks:
countly:
depends_on:
- countly-api
- countly-frontend