-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathdocker-compose.yml
47 lines (44 loc) · 1.07 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
services:
ruby:
image: ruby:${RUBY_IMAGE:-2.7}-bullseye
environment:
HISTFILE: /app/.bash_history
BUNDLE_PATH: /bundle
BUNDLE_CONFIG: /app/.bundle/config
DATABASE_URL: postgres://postgres:@postgres:5432
ELASTICSEARCH_URL: http://elasticsearch:9200
command: bash
working_dir: /app
volumes:
- .:/app:cached
- bundler_data:/bundle
tmpfs:
- /tmp
depends_on:
postgres:
condition: service_healthy
elasticsearch:
condition: service_healthy
postgres:
image: postgres:13
environment:
POSTGRES_HOST_AUTH_METHOD: trust
ports:
- 5432
healthcheck:
test: pg_isready -U postgres -h 127.0.0.1
interval: 10s
elasticsearch:
image: elasticsearch:7.12.1
ports:
- 9200:9200
environment:
ES_JAVA_OPTS: -Xms64m -Xmx256m
discovery.type: single-node
http.cors.enabled: "true"
bootstrap.memory_lock: "true"
healthcheck:
test: curl --silent --fail 0.0.0.0:9200/_cluster/health
interval: 30s
volumes:
bundler_data: