-
Notifications
You must be signed in to change notification settings - Fork 34
/
docker-compose.yml
78 lines (73 loc) · 2.03 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
version: '3.1'
services:
# Pre-seeded postgres Database
database:
image: 'captainfact/dev-db:latest'
ports: ['5432:5432']
# Main API - REST + Websockets
api:
image: captainfact/rest-api:staging
command: foreground
ports: ['4000:80']
depends_on: ['database']
environment:
MIX_ENV: dev
CF_SECRET_KEY_BASE: '8C6FsJwjV11d+1WPUIbkEH6gB/VavJrcXWoPLujgpclfxjkLkoNFSjVU9XfeNm6s'
CF_HOST: localhost
CF_DB_HOSTNAME: database
CF_DB_USERNAME: postgres
CF_DB_PASSWORD: postgres
CF_DB_NAME: captain_fact_dev
CF_FRONTEND_URL: 'http://localhost:3333'
CF_CHROME_EXTENSION_ID: 'chrome-extension://fnnhlmbnlbgomamcolcpgncflofhjckm'
# Public GaphQL API
graphql-api:
image: captainfact/graphql-api:staging
command: foreground
ports: ['4002:80']
depends_on: ['database', 'api']
environment:
MIX_ENV: dev
CF_HOST: 'localhost'
CF_BASIC_AUTH_PASSWORD: ''
CF_DB_HOSTNAME: database
CF_DB_USERNAME: postgres
CF_DB_PASSWORD: postgres
CF_DB_NAME: captain_fact_dev
# ATOM / RSS Feeds
atom-feed:
image: captainfact/atom-feed:staging
command: foreground
ports: ['4004:80']
depends_on: ['database', 'api']
environment:
MIX_ENV: dev
CF_HOST: 'localhost'
CF_DB_HOSTNAME: database
CF_DB_USERNAME: postgres
CF_DB_PASSWORD: postgres
CF_DB_NAME: captain_fact_dev
# OpenGraph service (for crawlers)
opengraph:
image: captainfact/opengraph:staging
command: foreground
ports: ['4005:80']
depends_on: ['database', 'api']
environment:
MIX_ENV: dev
CF_HOST: 'localhost'
CF_DB_HOSTNAME: database
CF_DB_USERNAME: postgres
CF_DB_PASSWORD: postgres
CF_DB_NAME: captain_fact_dev
# Jobs
jobs:
image: captainfact/jobs:staging
command: foreground
depends_on: ['database']
environment:
MIX_ENV: dev
CF_DB_HOSTNAME: database
CF_DB_USERNAME: postgres
CF_DB_PASSWORD: postgres
CF_DB_NAME: captain_fact_dev