@@ -22,24 +22,38 @@ Create a directory called "neo-test" in your home directory or any location of y
2222First, we need to set up the following .env file to configure the database.
2323
2424``` INI
25- # NetApp Settings (Required)
26- DATABASE_URL =postgresql://postgres:neodbsecret@neodb:5432/neoconnectortest # <== Needs to be changed!
25+ # # NetApp Neo Settings (Required)
26+
27+ # # NetApp Neo Database Settings (required)
28+ DBT =postgres # # Database type: postgres or mysql
29+ DBB =5432 # # Database binding port: postgres is 5432 and mysql is 3306
30+ DBU =postgres # # Database username
31+ DBP =neodbsecret # # Database password
32+ DBH =neodb # # Dababase host: if using included postgres then value is neodb
33+ DBN =neoconnectortest # # Database name
34+
35+ # #
36+ DATABASE_URL =${DBT}://${DBU}:${DBP}@${DBH}:${DBB}/${DBN} # <== Needs to be changed!
2737# # or for MySQL:
2838# DATABASE_URL=mysql://user:password@localhost:3306/neoconnectortest
39+
40+ # # (Un)comment if using or not the included postgres database
41+ POSTGRES_USER =${DBU}
42+ POSTGRES_PASSWORD =${DBP}
43+ POSTGRES_DB =${DBN}
2944```
3045
3146### Deploy
3247
3348``` YAML
3449services :
3550
51+ # # (Un)comment if using or not the included postgres database
3652 neodb :
3753 image : docker.io/library/postgres:16.10-alpine3.21
3854 container_name : neodb
39- environment :
40- POSTGRES_USER : postgres
41- POSTGRES_PASSWORD : neodbsecret
42- POSTGRES_DB : neoconnectortest
55+ env_file :
56+ - .env
4357 ports :
4458 - 5432:5432
4559 networks :
@@ -73,6 +87,7 @@ services:
7387 environment :
7488 - PORT=8080
7589 - PYTHONUNBUFFERED=1
90+ restart : unless-stopped
7691
7792 neoui :
7893 image : ghcr.io/beezy-dev/neo-ui-framework:3.1.0
@@ -85,6 +100,7 @@ services:
85100 - netapp-neo
86101 restart : unless-stopped
87102
103+ # # (Un)comment if using or not the included SMB/CIFS service
88104 neosmb :
89105 image : docker.io/dockurr/samba
90106 container_name : neosmb
@@ -106,6 +122,7 @@ networks:
106122 netapp-neo :
107123 driver : bridge
108124
125+ # # (Un)comment if using or not the included postgres database or/and SMB/CIFS service
109126volumes :
110127 neodb :
111128 driver : local
0 commit comments