forked from fleetyards/fleetyards
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
65 lines (64 loc) · 1.55 KB
/
docker-compose.yml
File metadata and controls
65 lines (64 loc) · 1.55 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
version: '3'
services:
app:
image: fleetyards/app:latest
build: .
ports:
- 3001:3001
environment:
DATABASE_URL: postgresql://root:root@postgres:5432/fleetyards
REDIS_URL: redis://redis:6379
ELASTICSEARCH_URL: elasticsearch:9200
# INITIAL_DB_SETUP: 1
UNSAFE: 1
RAILS_SERVE_STATIC_FILES: 1
DOMAIN: localhost:3001
PORT: 3001
ON_SUBDOMAIN: false
depends_on:
- postgres
- redis
- elasticsearch
# - kibana
# - mailhog
postgres:
image: postgres:10.5
restart: always
environment:
POSTGRES_USER: root
POSTGRES_HOST_AUTH_METHOD: trust
ports:
- 5432:5432
volumes:
- ./data/postgres-local:/var/lib/postgresql/data
- ./dumps:/backups
redis:
image: redis:6.0.9
ports:
- 6379:6379
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.9.2
ports:
- 9200:9200
- 9300:9300
environment:
- xpack.security.enabled=false
- discovery.type=single-node
- cluster.name=fleetyards-development-cluster
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
volumes:
- ./data/es-local:/usr/share/elasticsearch/data
# kibana:
# image: docker.elastic.co/kibana/kibana:7.9.2
# ports:
# - 5601:5601
# environment:
# ELASTICSEARCH_URL: http://elasticsearch:9200
# ELASTICSEARCH_HOSTS: http://elasticsearch:9200
# depends_on:
# - elasticsearch
# mailhog:
# image: mailhog/mailhog:latest
# ports:
# - 1025:1025
# - 8025:8025