-
Notifications
You must be signed in to change notification settings - Fork 73
/
docker-compose.yml
70 lines (66 loc) · 1.71 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
version: "3.9"
services:
database:
image: postgres:13.8
restart: always
ports:
- "5432:5432"
volumes:
- postgres:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: postgres
app:
build:
context: .
dockerfile: Dockerfile.local
command: bundle exec rails s -p 3000 -b 0.0.0.0
ports:
- "3000:3000"
image: miru-web:latest
working_dir: /app
volumes:
- .:/app
- gem_cache:/usr/local/bundle/gems
- node_modules:/app/node_modules
environment:
- DATABASE_URL=postgres://postgres:postgres@database:5432/
- DATABASE_CLEANER_ALLOW_REMOTE_DATABASE_URL="true"
- POSTGRES_PASSWORD="postgres"
- POSTGRES_USER="postgres"
- ELASTICSEARCH_URL=http://elastic:x2Sy5FK51zu@elasticsearch:9200
- PIDFILE=/tmp/pids/server.pid
depends_on:
- database
- elasticsearch
tmpfs:
- /tmp/pids/
webpack:
build:
context: .
dockerfile: Dockerfile.local
command: bin/webpacker-dev-server
image: miru-web:latest
ports:
- "3035:3035"
environment:
- WEBPACKER_DEV_SERVER_HOST=0.0.0.0
- DATABASE_URL=postgres://postgres:postgres@database:5432/
- DATABASE_CLEANER_ALLOW_REMOTE_DATABASE_URL="true"
- POSTGRES_PASSWORD="postgres"
- POSTGRES_USER="postgres"
- ELASTICSEARCH_URL=http://elastic:x2Sy5FK51zu@elasticsearch:9200
depends_on:
- database
elasticsearch:
image: elasticsearch:7.13.3
environment:
discovery.type: single-node
network.host: 0.0.0.0
xpack.security.enabled: "true"
ELASTIC_PASSWORD: "x2Sy5FK51zu"
ports:
- "9200:9200"
volumes:
gem_cache:
postgres:
node_modules: