-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
67 lines (55 loc) · 1.54 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
version: '3.1'
volumes:
neo4j_data:
networks:
backend:
services:
neo4j:
image: neo4j:3.2
ports:
- ${DEMO_NEO4J_HTTP_PORT:-7474}:7474
- ${DEMO_NEO4J_BOLT_PORT:-7687}:7687
volumes:
- neo4j_data:/data # Mount the neo4j data volume
networks:
- backend
environment:
NEO4J_AUTH: neo4j/3x4mpl3
test: &app
build:
context: .
dockerfile: dev.Dockerfile
image: icalialabs/rails-neo4j-demo:development
entrypoint: /usr/src/bin/entrypoint-dev
volumes:
# Mount the code directory into `/usr/src` inside our app containers:
- .:/usr/src
networks:
- backend
# Keep the stdin open, so we can attach to our app container's process
# and do things such as byebug, etc:
stdin_open: true
# Enable sending signals (CTRL+C, CTRL+P + CTRL+Q) into the container:
tty: true
depends_on:
- neo4j
command: guard
environment: &app_env
# Connect using the HTTP interface:
NEO4J_URL: http://neo4j:3x4mpl3@neo4j:7474
# Connect using the Bolt interface (Right now will crash when running migrations while
# obtaining the version, to generate the schema.yml...)
# NEO4J_TYPE: bolt
# NEO4J_URL: bolt://neo4j:3x4mpl3@neo4j:7687
RAILS_ENV: test
RACK_ENV: test
RAILS_LOG_TO_STDOUT: "true"
web:
<<: *app
command: rails server -p 3000 -b 0.0.0.0
ports:
- ${DEMO_RAILS_WEB_PORT:-3000}:3000
environment:
<<: *app_env
RAILS_ENV: development
RACK_ENV: development