forked from neo4j-contrib/neomodel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
38 lines (35 loc) · 923 Bytes
/
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
version: '3'
services:
tests:
image: 'python:${PYTHON_VERSION}'
volumes:
- .:/src
- pip-cache:/root/.cache/pip
working_dir: /src
command: >
sh -c "python -c 'from urllib.request import urlretrieve;
urlretrieve(\"https://raw.githubusercontent.com/vishnubob/wait-for-it/81b1373f17855a4dc21156cfe1694c31d7d1792e/wait-for-it.sh\",
\"/tmp/wait-for-it.sh\")' &&
chmod +x /tmp/wait-for-it.sh &&
pip install -e '.[dev]' && pytest"
links:
- neo4j
depends_on:
- neo4j
environment:
NEO4J_BOLT_URL: bolt://neo4j:foobarbaz@neo4j:7687
NEO4J_VERSION: ${NEO4J_VERSION}
neo4j:
image: 'neo4j:${NEO4J_VERSION}'
ports:
- '7474:7474'
- '7687:7687'
expose:
- 7474
- 7687
environment:
- NEO4J_AUTH=neo4j/foobarbaz
- NEO4J_ACCEPT_LICENSE_AGREEMENT=yes
volumes:
pip-cache:
driver: local