-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
83 lines (76 loc) · 2.12 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
version: '3.7'
x-env-defaults: &env
YARN_CACHE_FOLDER: /.yarn-cache
NODE_ENV: development
x-node-defaults: &node
tty: true
init: true
image: node:10.15
entrypoint: ["node"]
working_dir: /company-update
volumes:
- .:/company-update:cached
- ./node_modules:/company-update/node_modules:delegated
- yarn-cache:/.yarn-cache
environment:
<<: *env
services:
commands:
<<: *node
working_dir: /company-update
entrypoint: ["tail"]
command: ["-f", "/dev/null"]
app:
<<: *node
image: danlynn/ember-cli:3.14.0
working_dir: /company-update/services/app
entrypoint: ["ember"]
command: ["serve", "--port", "5555", "--proxy", "http://graphql"]
tmpfs:
- /company-update/services/app/tmp
ports:
- "5555:5555"
depends_on:
- graphql
graphql:
<<: *node
working_dir: /company-update/services/graphql
entrypoint: ["./node_modules/.bin/gulp"]
depends_on:
- mongo
ports:
- "5550:80"
environment:
<<: *env
# Core
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}
AWS_S3_BUCKET: ${AWS_S3_BUCKET-cuf-uploads}
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY}
MONGO_DSN: ${MONGO_DSN-mongodb://mongo/cuf}
NOTIFICATION_TO: ${[email protected]}
SENDGRID_API_KEY: ${SENDGRID_API_KEY}
SENDGRID_FROM: ${[email protected]}
FETCH_TIMEOUT: ${FETCH_TIMEOUT-30000}
# Tenant-specific
BASE4_API_URL: ${BASE4_API_URL}
GRAPHQL_URI: ${GRAPHQL_URI}
TENANT_KEY: ${TENANT_KEY}
# Optional configs
LOGO_URL: ${LOGO_URL}
LEADERSHIP_ENABLED: ${LEADERSHIP_ENABLED-true}
PROMOTIONS_ENABLED: ${PROMOTIONS_ENABLED-false}
LEADERSHIP_COMPANY_LABEL: ${LEADERSHIP_COMPANY_LABEL}
LEADERSHIP_SECTION_ALIAS: ${LEADERSHIP_SECTION_ALIAS-leaders}
LEADERSHIP_SECTION_MAX: ${LEADERSHIP_SECTION_MAX-3}
CONTACT_URL: ${CONTACT_URL}
CONTACT_TEXT: ${CONTACT_TEXT-Contact Us}
mongo:
tty: true
image: mongo:3.4
volumes:
- mongo:/data/db
ports:
- "5551:27017"
volumes:
mongo: {}
yarn-cache: {}