-
Notifications
You must be signed in to change notification settings - Fork 196
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
79 lines (74 loc) · 1.74 KB
/
docker-compose.yml
File metadata and controls
79 lines (74 loc) · 1.74 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
services:
api-server:
build:
context: .
target: develop
volumes:
- './:/app/'
- '/app/local'
ports:
- '8001:8000'
environment:
# default is 120, shorten to work with compose label
COLUMNS: 96
develop:
watch:
- path: ./cpanfile
action: rebuild
api-test:
profiles:
- test
depends_on:
elasticsearch-test:
condition: service_healthy
build:
context: .
target: test
environment:
NET_ASYNC_HTTP_MAXCONNS: 1
COLUMNS: 80
ES: http://elasticsearch-test:9200
HARNESS_ACTIVE: 1
# Instantiate Catalyst models using metacpan_server_testing.conf
METACPAN_SERVER_CONFIG_LOCAL_SUFFIX: testing
MINICPAN: /CPAN
DEVEL_COVER_OPTIONS: +ignore,^t/|^test-data/|^etc/|^local/
networks:
- elasticsearch
api-dev:
profiles:
- dev
build:
context: .
target: dev
volumes:
- './:/app/'
- '/app/local'
- '${GIT_COMMON_DIR:-/dev/null}:${GIT_COMMON_DIR:-/dev/null}:ro'
environment:
COLUMNS: 120
elasticsearch-test:
profiles:
- test
image: elasticsearch:8.19.9
environment:
- discovery.type=single-node
- xpack.security.enabled=false
- xpack.security.http.ssl.enabled=false
- ES_JAVA_OPTS=-Xms2g -Xmx2g
healthcheck:
timeout: 5s
start_period: 60s
test: ["CMD", "curl", "--fail", "http://localhost:9200/_cluster/health?wait_for_status=yellow&timeout=5s"]
ports:
- "9200"
volumes:
- type: volume
source: elasticsearch-test
target: /usr/share/elasticsearch/data
networks:
- elasticsearch
networks:
elasticsearch:
volumes:
elasticsearch-test: