-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
42 lines (39 loc) · 1.01 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
version: "3.5"
services:
postgres:
image: docker.io/library/postgres:12
restart: unless-stopped
ports:
- "24889:5432"
environment:
POSTGRES_DB: "${POSTGRES_DB:-gingermill}"
POSTGRES_USER: "${POSTGRES_USER:-gingermill}"
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD:-gingermill}"
PGDATA: "/var/lib/postgresql/data/pgdata"
volumes:
- postgres-storage:/var/lib/postgresql/data
deploy:
resources:
limits:
memory: 1G
reservations:
memory: 1G
neo:
network_mode: host
# The image to use
image: neo4j:latest
# map the ports so we can check the db server is up
ports:
- "7474:7474"
- "7687:7687"
# mounting a named volume to the container to track db data
volumes:
- neo4j_data:/data/
environment:
NEO4JLABS_PLUGINS: '["graph-data-science"]'
## volumes to be generated, these are saved somewhere for repeated use by docker
volumes:
postgres-storage:
neo4j_data:
networks:
default: