forked from LBHackney-IT/repairs-management
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
69 lines (64 loc) · 1.55 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
version: '3'
services:
rails_app:
build: .
command: bundle exec rails s -p 3000 -b 0.0.0.0
volumes:
- .:/app
environment:
- DATABASE_HOST=pg_db
- DATABASE_USERNAME=postgres
- NEO4J_HOST=neo4j_db
- NEO4J_URL=http://neo4j_db:7474
- NEO4J_TEST_URL=http://neo4j_db_test:7474
- REDIS_URL=redis://:somepassword@redis
- DELAYED_JOB_WEB_PASSWORD=password
ports:
- '3000:3000'
depends_on:
- pg_db
- neo4j_db
- redis
pg_db:
image: postgres:10.4
volumes:
- ./tmp/db/postgresql:/var/lib/postgresql/data
neo4j_db: &neo4j_db
image: neo4j:3.4
volumes:
- ./tmp/db/neo4j/dev/data:/data
- ./tmp/db/neo4j/dev/logs:/logs
environment:
- NEO4J_AUTH=none
ports:
- '7474:7474'
- '7687:7687'
neo4j_db_test:
<<: *neo4j_db
volumes:
- ./tmp/db/neo4j/test/data:/data
- ./tmp/db/neo4j/test/logs:/logs
ports:
- '7475:7474'
redis:
image: 'redis:4.0-alpine'
command: redis-server --requirepass somepassword
delayed_job:
depends_on:
- pg_db
- neo4j_db
- redis
build: .
command: bundle exec rake jobs:work
volumes:
- .:/app
environment:
- DATABASE_HOST=pg_db
- DATABASE_USERNAME=postgres
- NEO4J_HOST=neo4j_db
- NEO4J_URL=http://neo4j_db:7474
- NEO4J_TEST_URL=http://neo4j_db_test:7474
- REDIS_URL=redis://:somepassword@redis
- QUEUES=feed,default
- LOG_LEVEL=info