-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
91 lines (91 loc) · 2.29 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
version: '3'
services:
coney-api:
image: coney/coney-api
build:
context: ./coney-api/
restart: on-failure
volumes:
- ./coney-data/:/opt/coney-data/
networks:
- coney-net
depends_on:
- coney-neo4j
coney-create:
image: coney/coney-create
build:
context: ./coney-create/
args:
- BASE_HREF=${BASE_HREF:-/coney}/create/
restart: on-failure
networks:
- coney-net
depends_on:
- coney-api
coney-chat:
image: coney/coney-chat
build:
context: ./coney-chat/
args:
- BASE_HREF=${BASE_HREF:-/coney}/chat/
restart: on-failure
networks:
- coney-net
depends_on:
- coney-api
coney-inspect:
image: coney/coney-inspect
build:
context: ./coney-inspect/
args:
- BASE_HREF=${BASE_HREF:-/coney}/inspect/
restart: on-failure
networks:
- coney-net
depends_on:
- coney-api
coney-neo4j:
image: neo4j:3.5
# Remove comments to reach Neo4j GUI from localhost
ports:
# HOST_PORT:CONTAINER_PORT
- "127.0.0.1:7474:7474"
- "127.0.0.1:7687:7687"
restart: on-failure
volumes:
- ${NEO4J_FOLDER:-./}neo4j/data:/data
- ${NEO4J_FOLDER:-./}neo4j/logs:/logs
- ${NEO4J_FOLDER:-./}neo4j/import:/var/lib/neo4j/import
- ${NEO4J_FOLDER:-./}neo4j/plugins:/plugins
networks:
- coney-net
environment:
NEO4J_AUTH: "neo4j/coney"
coney-demo:
image: alpine:3
# Executes a query to initialize the survey coney-demo when Neo4j is running, then stop.
command: sh -c "chmod +x /query.sh && /query.sh"
restart: on-failure
volumes:
- ./query.sh:/query.sh
networks:
- coney-net
depends_on:
- coney-neo4j
coney-reverse:
image: nginx:1.16.0-alpine
# Unique access point to all components
ports:
- 80:80
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- ./coney-home/:/usr/share/nginx/html/static/
networks:
- coney-net
depends_on:
- coney-api
- coney-inspect
- coney-create
networks:
coney-net:
driver: bridge