Repository navigation
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
88 lines (88 loc) · 2.56 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
88 lines (88 loc) · 2.56 KB
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
version: '3'
services:
auth_postgres:
image: postgres:9.6
environment:
- 'POSTGRES_DB=ripple_auth'
- 'POSTGRES_PASSWORD=secret'
auth_redis:
image: redis
auth:
image: ripplefm/auth:0.2.3
ports:
- '3001:3000'
links:
- auth_postgres
- auth_redis
volumes:
- './support/public_key.pem:/etc/config/public_key.pem'
- './support/private_key.pem:/etc/config/private_key.pem'
environment:
- 'COOKIE_SECRET=secret'
- 'REDIS_HOST=auth_redis'
- 'POSTGRES_HOST=auth_postgres'
- 'POSTGRES_USERNAME=postgres'
- 'POSTGRES_PASSWORD=secret'
- 'POSTGRES_DATABASE=ripple_auth'
- 'PUBLIC_DOMAIN=http://localhost:3000'
- 'PUBLIC_KEY_LOCATION=/etc/config/public_key.pem'
- 'PRIVATE_KEY_LOCATION=/etc/config/private_key.pem'
- 'MAILGUN_API_KEY= '
- 'MAILGUN_API_DOMAIN= '
oauth2-creator:
image: ripplefm/auth:0.2.3
command:
[
'node',
'dist/cli',
'createOAuth2Client',
'ripple.fm',
'http://localhost:3000',
'-t',
]
links:
- auth_postgres
- auth_redis
volumes:
- './support/public_key.pem:/etc/config/public_key.pem'
- './support/private_key.pem:/etc/config/private_key.pem'
environment:
- 'COOKIE_SECRET=secret'
- 'REDIS_HOST=auth_redis'
- 'POSTGRES_HOST=auth_postgres'
- 'POSTGRES_USERNAME=postgres'
- 'POSTGRES_PASSWORD=secret'
- 'POSTGRES_DATABASE=ripple_auth'
- 'PUBLIC_DOMAIN=http://localhost:3000'
- 'PUBLIC_KEY_LOCATION=/etc/config/public_key.pem'
- 'PRIVATE_KEY_LOCATION=/etc/config/private_key.pem'
- 'MAILGUN_API_KEY= '
- 'MAILGUN_API_DOMAIN= '
api_postgres:
image: postgres:9.6
environment:
- 'POSTGRES_DB=ripple_api'
- 'POSTGRES_PASSWORD=secret'
api:
image: ripplefm/core-api:0.4.1
command: bash -c "sleep 15; bin/ripple migrate && bin/ripple seed; bin/ripple foreground"
restart: always
links:
- api_postgres
volumes:
- './support/public_key.pem:/etc/config/public_key.pem'
- './support/station_templates.exs:/opt/app/lib/ripple-0.4.1/priv/repo/seeds/station_templates.exs'
ports:
- '4000:4000'
environment:
- 'PORT=4000'
- 'REPLACE_OS_VARS=true'
- 'MIX_ENV=prod'
- 'MY_POD_IP=127.0.0.1'
- 'DB_NAME=ripple_api'
- 'DB_HOSTNAME=api_postgres'
- 'DB_USERNAME=postgres'
- 'DB_PASSWORD=secret'
- 'PUBLIC_KEY_LOCATION=/etc/config/public_key.pem'
- YOUTUBE_API_KEY
- SOUNDCLOUD_API_KEY