File tree 2 files changed +38
-0
lines changed
2 files changed +38
-0
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
services :
3
3
web-server :
4
+ profiles :
5
+ - cloud-es
4
6
ports :
5
7
- " 5001:80"
6
8
networks :
Original file line number Diff line number Diff line change @@ -22,6 +22,41 @@ services:
22
22
# |_|
23
23
#
24
24
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
25
60
api :
26
61
profiles :
27
62
- dev
@@ -219,6 +254,7 @@ services:
219
254
220
255
pghost :
221
256
profiles :
257
+ - cloud-es
222
258
- dev
223
259
- test
224
260
hostname : pghost
You can’t perform that action at this time.
0 commit comments