Skip to content

Commit 1e73b82

Browse files
committed
fix: update docker-compose to include PostgreSQL service and adjust NEO dependencies
1 parent dc11ca1 commit 1e73b82

File tree

1 file changed

+37
-16
lines changed

1 file changed

+37
-16
lines changed

netapp-neo/dist/docker-compose.yml

Lines changed: 37 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
services:
2-
netapp-connector:
2+
db: # PostgreSQL database service - Optional - only needed if you don't have an existing PostgreSQL database and want to quickly get started. If you have an existing PostgreSQL database, you can skip this service and configure the NEO service to connect to your existing database. Simply remove the 'db' service and update the NEO service's environment variables to point to your existing database.
3+
image: postgres
4+
restart: always
5+
shm_size: 128mb # Adjust shared memory size if needed, this is important for database performance and 128mb is a good starting point for POC setups.
6+
environment:
7+
POSTGRES_PASSWORD: yourStrongPasswordHere! # use a strong password
8+
POSTGRES_DB: neo
9+
PGDATA: /var/lib/postgresql/18/docker # PostgreSQL 18+ uses version-specific PGDATA path
10+
volumes:
11+
- postgres_data:/var/lib/postgresql # PostgreSQL 18+ mounts at /var/lib/postgresql (not /data subdirectory)
12+
networks:
13+
- netapp-neo
14+
neo:
315
image: ghcr.io/netapp/netapp-copilot-connector:latest # Alternatively, you can specify a specific version tag i.e. 2.1.7
416
# deploy: # Uncomment this section to enable GPU support
517
# resources:
@@ -15,23 +27,32 @@ services:
1527
security_opt:
1628
- apparmor:unconfined
1729
ports:
18-
- "8080:8080"
19-
env_file:
20-
- .env
30+
- "8081:8080"
2131
environment:
2232
- PORT=8080
23-
- PYTHONUNBUFFERED=1
24-
- DB_PATH=data/database.db
25-
- MS_GRAPH_CLIENT_ID=${MS_GRAPH_CLIENT_ID}
26-
- MS_GRAPH_CLIENT_SECRET=${MS_GRAPH_CLIENT_SECRET}
27-
- MS_GRAPH_TENANT_ID=${MS_GRAPH_TENANT_ID}
28-
- MS_GRAPH_CONNECTOR_ID=${MS_GRAPH_CONNECTOR_ID:-netappcopilot}
29-
- MS_GRAPH_CONNECTOR_NAME=${MS_GRAPH_CONNECTOR_NAME:-"NetApp Connector"}
30-
- NETAPP_CONNECTOR_LICENSE=${NETAPP_CONNECTOR_LICENSE}
31-
volumes:
32-
- netapp_data:/app/data
33+
- DATABASE_URL=postgresql://postgres:yourStrongPasswordHere!@db:5432/neo # Update with your DB credentials if needed. For mySQL use: mysql://user:password@tcp(db:3306)/neo
34+
restart: unless-stopped
35+
networks:
36+
- netapp-neo
37+
depends_on:
38+
- db # Ensure the database starts before NEO - Remove this line if you're using an existing database externally
39+
40+
neoui:
41+
image: ghcr.io/beezy-dev/neo-ui-framework:3.0.4-2
42+
container_name: neoui
43+
ports:
44+
- "8080:80"
45+
environment:
46+
- NEO_API=http://neo:8080 # ← add this
47+
networks:
48+
- netapp-neo
3349
restart: unless-stopped
50+
depends_on:
51+
- neo
52+
53+
networks:
54+
netapp-neo:
55+
driver: bridge
3456

3557
volumes:
36-
netapp_data: # For persistent application data
37-
driver: local
58+
postgres_data:

0 commit comments

Comments
 (0)