-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.yml
74 lines (74 loc) · 1.41 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
version: "2.2"
volumes:
elasticsearch:
postgres13:
redis:
minio:
networks:
dev:
services:
elasticsearch:
build: elasticsearch
environment:
discovery.type: single-node
transport.host: 127.0.0.1
xpack.security.enabled: "false"
bootstrap.memory_lock: "true"
ES_JAVA_OPTS: "-Xms512m -Xmx512m -Dlog4j2.disable.jmx=true"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- "elasticsearch:/usr/share/elasticsearch/data"
ports:
- 9200:9200
- 9300:9300
networks:
- dev
postgres:
image: postgres:13-buster
ports:
- "5432:5432"
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DB: check-api-tests
networks:
- dev
redis:
image: redis:6.2
ports:
- "6379:6379"
volumes:
- "redis:/data"
networks:
- dev
minio:
image: minio/minio
command: server /data
ports:
- "9000:9000"
volumes:
- "minio:/data"
environment:
MINIO_ACCESS_KEY: AKIAIOSFODNN7EXAMPLE
MINIO_SECRET_KEY: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
networks:
- dev
api:
build: .
ports:
- "3000:3000"
depends_on:
- elasticsearch
- postgres
- redis
- minio
volumes:
- ".:/app"
environment:
RAILS_ENV: development
SERVER_PORT: 3000
networks:
- dev