-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.sample.yml
105 lines (98 loc) · 2.6 KB
/
docker-compose.sample.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
version: '2'
services:
site:
image: cofacts/rumors-site:latest-en
environment:
- PORT=3000
- NODE_ENV=production
- SERVER_ROLLBAR_TOKEN=
- PUBLIC_ROLLBAR_TOKEN=
- PUBLIC_ROLLBAR_ENV=
- PUBLIC_API_URL=http://api:5000
- PUBLIC_GTM_ID=
- SERVER_STACKIMPACT_AGENT_KEY=
- SERVER_STACKIMPACT_APP_NAME=
ports:
- "3000:3000"
depends_on:
- api
api:
image: cofacts/rumors-api
environment:
- ELASTICSEARCH_URL=http://db:9200
- ELASTIC_LOG_LEVEL=info
- PORT=5000
- COOKIE_SECRETS=
- ROLLBAR_TOKEN=
- ROLLBAR_ENV=production
- HTTP_HEADER_APP_ID=x-app-id
- HTTP_HEADER_APP_SECRET=x-app-secret
- RUMORS_SITE_CORS_ORIGIN=http://localhost:3000
- RUMORS_SITE_REDIRECT_ORIGIN=http://localhost:3000
- RUMORS_LINE_BOT_SECRET=CHANGE_ME
- FACEBOOK_APP_ID=
- FACEBOOK_SECRET=
- FACEBOOK_CALLBACK_URL=http://localhost:5000/callback/facebook
- TWITTER_CONSUMER_KEY=
- TWITTER_CONSUMER_SECRET
- TWITTER_CALLBACK_URL=http://localhost:5000/callback/twitter
- GITHUB_CLIENT_ID=
- GITHUB_SECRET=
- GITHUB_CALLBACK_URL=http://localhost:5000/callback/github
- URL_RESOLVER_URL=url-resolver:4000
- GOOGLE_OAUTH_KEY_PATH=/data/service-account-key.json
- GA_WEB_VIEW_ID=
- GA_LINE_VIEW_ID=
- TIMEZONE=+08:00
- TRUST_PROXY_HEADERS=
- COOKIE_SAMESITE_NONE=
- GCS_CREDENTIALS=
- GCS_BUCKET_NAME=
- GCS_IMAGE_FOLDER=
- INTERNET_ARCHIVE_S3_ACCESS_KEY=
- INTERNET_ARCHIVE_S3_SECRET_KEY=
volumes:
- "./volumes/api:/data"
ports:
- "5000:5000"
depends_on:
- db
- url-resolver
db:
image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.3.2
environment:
- "path.repo=/usr/share/elasticsearch/data"
volumes:
- "./volumes/db-sample:/usr/share/elasticsearch/data"
ports:
- "62222:9200"
url-resolver:
image: cofacts/url-resolver
ports: # expose for debugging
- "4000:4000"
environment:
- YOUTUBE_API_KEY=
- ROLLBAR_TOKEN=
- ROLLBAR_ENV=production
line-bot-zh:
image: cofacts/rumors-line-bot:dev
env_file:
- ./env-files/line-bot-sample
ports:
- "5001:5001"
depends_on:
- api
- mongo
- redis
redis:
image: redis
mongo:
image: mongo:3.6
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=root-test-password
ports:
- "27017:27017"
volumes:
- "./data/mongo:/data/db"
command: mongod