forked from maphubs/maphubs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker_cloud_example.yaml
140 lines (140 loc) · 3.3 KB
/
docker_cloud_example.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
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
backup-cron:
image: 'quay.io/maphubs/dockercloud-cron:docker-cloud'
cpu_shares: 128
environment:
- 'DOCKUP_CRON_SCHEDULE=0 23 * * *'
links:
- dockup
mem_limit: 64m
restart: always
roles:
- global
tags:
- prod
data:
image: 'ubuntu:trusty'
command: 'true'
tags:
- prod
volumes:
- /var/lib/postgresql/data
- /etc/letsencrypt
dockup:
image: 'tutum/dockup:latest'
environment:
- AWS_ACCESS_KEY_ID=ADD_VALUE_HERE
- AWS_DEFAULT_REGION=us-east-1
- AWS_SECRET_ACCESS_KEY=ADD_VALUE_HERE
- BACKUP_NAME=backup
- 'PATHS_TO_BACKUP=/var/lib/postgresql/data /etc/letsencrypt'
- RESTORE=false
- S3_BUCKET_NAME=maphubs-backups
tags:
- prod
volumes_from:
- data
gateway:
image: 'quay.io/maphubs/gateway:latest'
dns:
- 216.69.185.5
- 208.109.255.5
- 8.8.8.8
environment:
- DOMAIN=beta.maphubs.com #change this to your domain
- [email protected] #change this to your domain
links:
- maphubs
- tiles
ports:
- '80:80'
- '443:443'
tags:
- prod
volumes_from:
- data
manet:
image: 'quay.io/maphubs/manet:latest'
ports:
- '8891:8891'
restart: always
tags:
- prod
maphubs:
image: 'quay.io/maphubs/web:release'
environment:
- DB_DATABASE=maphubs
- DB_HOST=maphubs-db
- DB_PASS=ADD_VALUE_HERE
- DB_PORT=5432
- DB_USER=ADD_VALUE_HERE
- 'ID_AUTH_URL=https://maphubs.com' #change this to your domain
- ID_KEY=ADD_VALUE_HERE
- ID_SECRET=ADD_VALUE_HERE
- OMH_ENV_TAG=production
- OMH_HOST=maphubs.com #change this to your domain
- OMH_HTTPS=true
- OMH_INTERNAL_PORT=4000
- OMH_SENTRY_DSN=ADD_VALUE_HERE
- OMH_SENTRY_DSN_PUBLIC=ADD_VALUE_HERE
- 'OMH_MANET_URL=http://manet:8891'
- MAPBOX_ACCESS_TOKEN=ADD_VALUE_HERE
- OMH_PORT=80
- OMH_SESSION_SECRET=ADD_VALUE_HERE
- 'OMH_TILESERVICE_URL=https://maphubs.com' #change this to your domain
- OMH_TILESERVICE_INTERNAL_URL=http://tiles:4001
- OMH_PRODUCT_NAME=MapHubs
- OMH_LOGO=/assets/maphubs-logo.png
- OMH_LOGO_SMALL=/assets/maphubs-logo-small.png
- OMH_BETA_TEXT=beta
- OMH_TWITTER=maphubs
- OMH_MAPHUBS_PRO=false
- OMH_THEME=maphubs
expose:
- '4000'
links:
- maphubs-db
restart: always
tags:
- prod
target_num_containers: 2
maphubs-db:
image: 'quay.io/maphubs/db:release'
environment:
- DB_DATABASE=maphubs
- DB_PASS=ADD_VALUE_HERE
- DB_USER=ADD_VALUE_HERE
- 'ID_CALLBACK=http://maphubs.com/edit/land.html' #change this to your domain
- ID_KEY=ADD_VALUE_HERE
- ID_SECRET=ADD_VALUE_HERE
- 'ID_URL=http://maphubs.com/edit' #change this to your domain
- POSTGRES_PASSWORD=ADD_VALUE_HERE
expose:
- '5432'
restart: always
tags:
- prod
volumes_from:
- data
tiles:
image: 'quay.io/maphubs/tiles:master'
environment:
- DB_DATABASE=maphubs
- DB_HOST=maphubs-db
- DB_PASS=ADD_VALUE_HERE
- DB_PORT=5432
- DB_USER=ADD_VALUE_HERE
- OMH_HOST=beta.maphubs.com #change this to your domain
- OMH_INTERNAL_PORT=4001
- OMH_PORT=4001
- USE_HTTPS=1
expose:
- '4001'
links:
- maphubs-db
restart: always
tags:
- prod
target_num_containers: 2