-
Notifications
You must be signed in to change notification settings - Fork 2
/
full.yml
91 lines (85 loc) · 1.9 KB
/
full.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
version: '3.1'
volumes:
esdata:
driver: local
db_data:
gem_cache:
node_modules_cache:
services:
mysql:
image: mysql:5.7
ports:
- '3306:3306'
- '8889:3306'
volumes:
- ./src/database/import:/docker-entrypoint-initdb.d
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=layers-app_development
- MYSQL_USER=user
- MYSQL_PASSWORD=root
labels:
- maintainer='jordi@error.agency'
redis:
image: redis:3.2
# ports:
# - '6379:6379'
labels:
- maintainer='jordi@error.agency'
elasticsearch:
build:
context: .
dockerfile: docker/elasticsearch/Dockerfile
# ports:
# - "9200:9200"
# - "8080:8080"
environment:
LOGSPOUT: 'ignore'
ES_JAVA_OPTS: '-Xms1024m -Xmx1024m'
bootstrap.memory_lock: 'false'
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 262144
hard: 262144
volumes:
- esdata:/usr/share/elasticsearch/data
healthcheck:
test: ["CMD", "curl", "-SsfL", "127.0.0.1:9200/_cat/health?h=status"]
interval: 60s
timeout: 1s
retries: 10
web:
build:
context: ./src
dockerfile: ../docker/web/Dockerfile
ports:
- 3000:3000
volumes:
- ./src:/usr/src/app
- gem_cache:/gems
- node_modules_cache:/node_modules
environment:
WEBPACKER_DEV_SERVER_HOST: webpack
depends_on:
- webpack
webpack:
build:
context: ./src
dockerfile: ../docker/web/Dockerfile
command: ./bin/webpack-dev-server
ports:
- 3035:3035
volumes:
- ./src:/usr/src/app
- gem_cache:/gems
- node_modules_cache:/node_modules
environment:
WEBPACKER_DEV_SERVER_HOST: 0.0.0.0
healthcheck:
test: ["CMD","curl","--fail","127.0.0.1:3035/webpack-dev-server","||","exit 1"]
interval: 10s
timeout: 2s
retries: 10