forked from brave-intl/publishers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
127 lines (120 loc) · 8.7 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
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
version: '2.1'
services:
app:
extends:
file: base.yml
service: publishers
command: foreman start --procfile=Procfile.dev
volumes:
- "./:/var/www"
ports:
- 3000
tty: true
stdin_open: true
depends_on:
- postgres
- redis
- mailcatcher
- eyeshade-web
- eyeshade-worker
environment:
- CHROME_BINARY=/usr/bin/chrome
- ADDRESS=0.0.0.0
- API_EYESHADE_BASE_URI=http://eyeshade-web:3002/
- API_EYESHADE_KEY=b7747761-0656-48a1-8cb9-7b1b0315d054
- DATABASE_CLEANER_ALLOW_REMOTE_DATABASE_URL=true
- DATABASE_URL=postgres://postgres@postgres/brave_publishers_dev
- DATABASE_URL_TEST=postgres://postgres@postgres/brave_publishers_test
- SENDGRID_SMTP_PORT=1025
- SENDGRID_SMTP_SERVER=mailcatcher
- PORT=3000
- REDIS_URL=redis://redis:6379/0
# null ssl
- SSL=off
- UPHOLD_API_URI
- UPHOLD_AUTHORIZATION_ENDPOINT
- UPHOLD_CLIENT_ID
- UPHOLD_CLIENT_SECRET
- UPHOLD_DASHBOARD_URL
eyeshade-worker:
container_name: eyeshade-worker-publishers
command: "npm run eyeshade-worker"
extends:
file: ../bat-ledger/base.yml
service: ledger
environment:
- MONGODB_URI=mongodb://mongo/eyeshade
- SERVICE=eyeshade
- PUBLISHERS_URL=http://app:3000
- TOKEN_LIST=b7747761-0656-48a1-8cb9-7b1b0315d054
- UPHOLD_ACCESS_TOKEN
- UPHOLD_CLIENT_ID
- UPHOLD_CLIENT_SECRET
- UPHOLD_ENVIRONMENT
- DATABASE_URL=postgres://eyeshade:password@eyeshade-postgres/eyeshade
- BAT_RATIOS_TOKEN
depends_on:
- mongo
- redis
- eyeshade-postgres
eyeshade-web:
container_name: eyeshade-web-publishers
ports:
- 3002
command: "npm run eyeshade-server"
extends:
file: ../bat-ledger/base.yml
service: ledger
environment:
- MONGODB_URI=mongodb://mongo/eyeshade
- SERVICE=eyeshade
- PUBLISHERS_URL=http://app:3000
- TOKEN_LIST=b7747761-0656-48a1-8cb9-7b1b0315d054
- UPHOLD_ACCESS_TOKEN
- UPHOLD_CLIENT_ID
- UPHOLD_CLIENT_SECRET
- UPHOLD_ENVIRONMENT
- DATABASE_URL=postgres://eyeshade:password@eyeshade-postgres/eyeshade
- BAT_RATIOS_TOKEN
depends_on:
- mongo
- redis
- eyeshade-postgres
proxy:
image: "dockercloud/haproxy"
ports:
- 3000:443
- 1936:1936
links:
- app
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
SSL_CERT: "-----BEGIN CERTIFICATE-----\nMIIG7jCCBNagAwIBAgIJAINQ0hQNQ9x4MA0GCSqGSIb3DQEBCwUAMIGxMQswCQYD\nVQQGEwJVUzETMBEGA1UECAwKQ2FsaWZvcm5pYTEWMBQGA1UEBwwNU2FudGEgQmFy\nYmFyYTESMBAGA1UECgwJRW5kIFBvaW50MRcwFQYDVQQLDA5UZXN0aW5nIERvbWFp\nbjE0MDIGCSqGSIb3DQEJARYldGVzdGluZy1kb21haW5AdGVzaW5nLWRvbWFpbi5m\nYWtlLXRsZDESMBAGA1UEAwwJbG9jYWxob3N0MB4XDTE3MTIwNTAwMTk0OVoXDTI3\nMTIwMzAwMTk0OVowgbExCzAJBgNVBAYTAlVTMRMwEQYDVQQIDApDYWxpZm9ybmlh\nMRYwFAYDVQQHDA1TYW50YSBCYXJiYXJhMRIwEAYDVQQKDAlFbmQgUG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Gcn1Py3NnMHlq0xpHqmdMOZhlRCP8J/eLhq4acxQkwu3otuFK\nDe9cQYgs2B2yHso21CYNOms4cfIO6kpgR/yH9/HLkqyRoM0nNNuhnL+8Y+6ECy0l\n/XcOQ0OXpme/xhlZHcXpYzg3WGJVRZC/OQKnYkiupVwOTwtr1bSkEw2qKdSwki1q\nhRKErdeeFbqcZS3mq43CqHW4i+pNB6p4o3gmZthMD+OO9U0Bs/xj1/fhimwuTze/\nwGwd+QKCAQEAkkWvj8L47KylgFkwFgIErrjgymJkCeFgGAti9TKh4q0AWgUkAyQI\n/CBolpaDtqkI+sl5+hPezvUJOraDCwTgyl7eMwTH4tYqFv8mu5SexdBHt1Wv6r6I\nRoEOucDqvcKvfNIhg9QQmh5swtofHNjp7MMr6LWws4oFObBfo2keBm2kojeopInx\n2kTg6y+jsKBj03odyYVuyUa1L9ZqAuXr/tI0F94AcFwmk1WVycjSGpJRvXkdvxNh\nDGO7pPLYEQMzygjxacyFw6Jhtz7FWmITMH+HAPfVH0fTuZqQTRd4MhLABN/S+jwB\nqigGUTTnMS52DHo4OzRY2vhFq5pPq0HDEQKCAQEArSY3FUgAEHPPVYikcxZL8aTe\nUfVMtDekS7cvn7sxJw4UHvT8/cXInfXmXqos14MLliAa704ja7+YYf9LDaxpuR46\nCaBPUQgwaAb0MYBVCs+yeP3ezZr3NOdFJcdI/FvH9E8NWPIP+RA6EvjqWYzsEADo\n0V67bNu55ab+T6pd9ppTEyWulBB+aMKv7udjN6WOpXwGr9nm/C55xvmVHdQJqDYW\ngW7JyRROUpC6kMItuDBSeXE1VHB7+wvUbykEzejG32iiO6ycRq656DnLJr2kMJVP\nFRfC0dIGQ7co3dUiknUMvoJRUDF8B6XfevjPsVLdCkXTxebuDI9jRksBGsZ36Q==\n-----END RSA PRIVATE KEY-----\n"
TIMEOUT: "connect 5000, client 500000, server 500000"
ADDITIONAL_SERVICES: app
postgres:
image: postgres
ports:
- 5432
mailcatcher:
image: "schickling/mailcatcher"
ports:
- 1025
- 1080:1080
redis:
image: redis
ports:
- 6379
mongo:
image: mongo
ports:
- 27017
eyeshade-postgres:
container_name: eyeshade-postgres
image: postgres:10.4
ports:
- 5432
environment:
- "POSTGRES_USER=eyeshade"
- "POSTGRES_PASSWORD=password"