File tree Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Original file line number Diff line number Diff line change 11---
22services :
33 web-server :
4+ profiles :
5+ - cloud-es
46 ports :
57 - " 5001:80"
68 networks :
Original file line number Diff line number Diff line change @@ -22,6 +22,41 @@ services:
2222 # |_|
2323 #
2424
25+ cloud_api :
26+ profiles :
27+ - cloud-es
28+ depends_on :
29+ - pghost
30+ image : metacpan/metacpan-api:latest
31+ build :
32+ context : ./src/metacpan-api
33+ # put variables for compose inside a .env file
34+ # use env_file for variables to be set inside the container
35+ env_file :
36+ - .env
37+ command : >
38+ /metacpan-api/wait-for-it.sh -t 15 -s -h ${PG_HOST} -p ${PG_PORT} --
39+ ${API_SERVER} ./bin/api.pl
40+ volumes :
41+ - type : volume
42+ source : cpan
43+ target : /CPAN
44+ - type : bind
45+ source : ./src/metacpan-api
46+ target : /metacpan-api
47+ - type : bind
48+ source : ./bin/index-cpan.sh
49+ target : /bin/index-cpan.sh
50+ read_only : true
51+ - type : bind
52+ source : ./bin/partial-cpan-mirror.sh
53+ target : /bin/partial-cpan-mirror.sh
54+ read_only : true
55+ ports :
56+ - " 5000:5000"
57+ networks :
58+ - database
59+ - web-network
2560 api :
2661 profiles :
2762 - dev
@@ -219,6 +254,7 @@ services:
219254
220255 pghost :
221256 profiles :
257+ - cloud-es
222258 - dev
223259 - test
224260 hostname : pghost
You can’t perform that action at this time.
0 commit comments