You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# This compose file defines the admin server, database, and other supporting services required to run Project N.O.M.A.D.
4
+
# You can use this with `docker-compose up -d` to start all the necessary services with a single command after installation.
5
+
#
6
+
# Note: we recommend leaving all of the environment variables as-is except for any "replaceme" values,
7
+
# which must be updated for the admin server to start successfully. The default values are optimized for ease of installation and use,
8
+
# but you can customize them as needed (e.g. changing ports, database connection details, log level, etc.)
1
9
name: project-nomad
2
10
services:
3
11
admin:
@@ -12,38 +20,35 @@ services:
12
20
volumes:
13
21
- /opt/project-nomad/storage:/app/storage
14
22
- /var/run/docker.sock:/var/run/docker.sock # Allows the admin service to communicate with the Host's Docker daemon
15
-
- ./entrypoint.sh:/usr/local/bin/entrypoint.sh
16
-
- ./wait-for-it.sh:/usr/local/bin/wait-for-it.sh
17
23
- nomad-update-shared:/app/update-shared # Shared volume for update communication
18
24
environment:
19
25
- NODE_ENV=production
20
26
- PORT=8080
21
27
- LOG_LEVEL=info
22
-
- APP_KEY=replaceme
23
-
- HOST=0.0.0.0
24
-
- URL=replaceme
28
+
- APP_KEY=replaceme# Needs to be at least 16 chars or will fail validation and container won't start!
29
+
- HOST=0.0.0.0# Leave this as is so the admin server listens all interfaces within the container - this doesn't affect how you access it from the host, it's just for internal container networking
30
+
- URL=replaceme# Should be set to the URL you will access the admin interface at (e.g. http://localhost:8080 or http://192.168.1.x:8080)
25
31
- DB_HOST=mysql
26
-
- DB_PORT=3306
32
+
- DB_PORT=3306# If you change the MySQL port, make sure to update this accordingly
27
33
- DB_DATABASE=nomad
28
34
- DB_USER=nomad_user
29
-
- DB_PASSWORD=replaceme
35
+
- DB_PASSWORD=replaceme# Needs to match the MYSQL_PASSWORD in the mysql service!
30
36
- DB_NAME=nomad
31
37
- DB_SSL=false
32
38
- REDIS_HOST=redis
33
-
- REDIS_PORT=6379
39
+
- REDIS_PORT=6379# If you change the Redis port, make sure to update this accordingly
image: amir20/dozzle:v10.0# Dozzle is optional, but note that the "Service Logs & Metrics" link in Settings points to it. We recommend including it unless you have a specific reason not to
47
52
container_name: nomad_dozzle
48
53
restart: unless-stopped
49
54
ports:
@@ -61,7 +66,7 @@ services:
61
66
- MYSQL_ROOT_PASSWORD=replaceme
62
67
- MYSQL_DATABASE=nomad
63
68
- MYSQL_USER=nomad_user
64
-
- MYSQL_PASSWORD=replaceme
69
+
- MYSQL_PASSWORD=replaceme# Needs to match DB_PASSWORD in the admin service!
65
70
volumes:
66
71
- /opt/project-nomad/mysql:/var/lib/mysql
67
72
healthcheck:
@@ -80,7 +85,7 @@ services:
80
85
interval: 30s
81
86
timeout: 10s
82
87
retries: 3
83
-
updater:
88
+
updater:# Updater & disk-collector are lightweight sidecar containers that run alongside the admin container to handle updates and host disk usage collection, respectively.
0 commit comments