-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
135 lines (135 loc) · 4.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
128
129
130
131
132
133
134
135
version: '2'
services:
app:
build: .
image: commonfare_dev_rails_app
container_name: commonfare_dev_rails_app
restart: always
command: >
bash -c "
rm -f /app/tmp/pids/development.pid;
bundle exec whenever --update-crontab --set environment=development;
cron && rails server -p 3000 -b 0.0.0.0 --pid /app/tmp/pids/development.pid
"
volumes:
- ~/tmp:/host_tmp
- ~/tmp/commonshare-data:/commonshare-data
- ~/tmp/dashboard-data:/dashboard-data
- bundle_cache:/bundle
ports:
- "3000:3000"
# links app container to postgres container.
# Containers for the linked service will be reachable at a hostname identical to the alias, or the service name if no alias was specified.
# see https://docs.docker.com/compose/compose-file/#links
depends_on:
- postgres
- mailcatcher
- webpack-dev-server
env_file:
- ./app_variables.env
# These two allow debug with pry
tty: true
stdin_open: true
webpack-dev-server:
image: commonfare_dev_rails_app
container_name: commonfare_dev_webpack
restart: always
command: bash -c "rm -rf /app/public/packs; ./bin/webpack-dev-server"
ports:
- "3035:3035"
volumes:
- ~/tmp:/host_tmp
- bundle_cache:/bundle
env_file:
- ./app_variables.env
mailcatcher:
image: tophfr/mailcatcher
container_name: commonfare_mailcatcher
restart: always
ports:
- 1080:80
postgres:
image: postgres:9.6
container_name: commonfare_pg
restart: always
ports:
- "5432"
volumes:
- ./db-data:/var/lib/postgresql/data
swapi_commoncoin:
image: dyne/social-wallet-api
container_name: swapi_commoncoin
volumes:
- ./swapi-commoncoin-conf/social-wallet-api.yaml:/app/resources/social-wallet-api.yaml
- ./swapi-commoncoin-conf/apikey.yaml:/app/apikey.yaml
ports:
- "3036:3000" # if you specify the env variable SWAPI_PORT make sure it matches the container port here
environment:
- SWAPI_HOST=0.0.0.0 # hostname on which the social wallet api service will listen
# - SWAPI_PORT=4000 # port on which the social wallet api service will listen (default is 3000)
depends_on:
- swapi_commoncoin_mongo
# network_mode: "host" # required if social wallet api service listens only to 'localhost'
# These two allow debug with pry
tty: true
stdin_open: true
swapi_commoncoin_mongo:
image: mongo
container_name: swapi_commoncoin_mongo
volumes:
- ./swapi-commoncoin-data/db:/data/db
# ports:
# - "27017:27017" # required if social wallet api service listens only to 'localhost'
# swapi_santacoin:
# image: dyne/social-wallet-api
# container_name: swapi_santacoin
# volumes:
# - ./swapi-santacoin-conf/social-wallet-api.yaml:/app/resources/social-wallet-api.yaml
# - ./swapi-santacoin-conf/apikey.yaml:/app/apikey.yaml
# ports:
# - "3037:3000" # if you specify the env variable SWAPI_PORT make sure it matches the container port here
# environment:
# - SWAPI_HOST=0.0.0.0 # hostname on which the social wallet api service will listen
# # - SWAPI_PORT=4000 # port on which the social wallet api service will listen (default is 3000)
# depends_on:
# - swapi_santacoin_mongo
# # network_mode: "host" # required if social wallet api service listens only to 'localhost'
# # These two allow debug with pry
# tty: true
# stdin_open: true
# swapi_santacoin_mongo:
# image: mongo
# container_name: swapi_santacoin_mongo
# volumes:
# - ./swapi-santacoin-data/db:/data/db
swapi_oltrino:
image: dyne/social-wallet-api
container_name: swapi_oltrino
volumes:
- ./swapi-oltrino-conf/social-wallet-api.yaml:/app/resources/social-wallet-api.yaml
- ./swapi-oltrino-conf/apikey.yaml:/app/apikey.yaml
ports:
- "3038:3000" # if you specify the env variable SWAPI_PORT make sure it matches the container port here
environment:
- SWAPI_HOST=0.0.0.0 # hostname on which the social wallet api service will listen
# - SWAPI_PORT=4000 # port on which the social wallet api service will listen (default is 3000)
depends_on:
- swapi_oltrino_mongo
# network_mode: "host" # required if social wallet api service listens only to 'localhost'
# These two allow debug with pry
tty: true
stdin_open: true
swapi_oltrino_mongo:
image: mongo
container_name: swapi_oltrino_mongo
volumes:
- ./swapi-oltrino-data/db:/data/db
commonshare:
image: commonfare/commonshare-python
container_name: commonshare
volumes:
- ~/tmp/commonshare-data:/usr/src/app/data
ports:
- "5001:5000"
volumes:
bundle_cache: