Hello,
I have a group which contains two tasks:
- Task 1 NodeJS (yarn start)
- /app/.next/static
- /app/.next/public
- Task 2 Nginx
- /home/app/public
- /home/app/puplic/_next/static
I need the files from task 1 on task 2. The files are prebuild static files. On my classic docker-compose … I’ve created two volumes and configures both to use the same.
If I try the same on my Nomad job configuration … the folders are:
- emtpy
- owned by root
On docker-compose, it looks like this
- The NodeJS
"Mounts": [
{
"Type": "volume",
"Name": "admin_portal_admin_portal_next_data",
"Source": "/var/lib/docker/volumes/admin_portal_admin_portal_next_data/_data",
"Destination": "/app/.next/static",
"Driver": "local",
"Mode": "rw",
"RW": true,
"Propagation": ""
},
{
"Type": "volume",
"Name": "admin_portal_admin_portal_public_data",
"Source": "/var/lib/docker/volumes/admin_portal_admin_portal_public_data/_data",
"Destination": "/app/public",
"Driver": "local",
"Mode": "rw",
"RW": true,
"Propagation": ""
},
- The Nginx
"Mounts": [
{
"Type": "volume",
"Name": "admin_portal_admin_portal_next_data",
"Source": "/var/lib/docker/volumes/admin_portal_admin_portal_next_data/_data",
"Destination": "/app/public/_next/static",
"Driver": "local",
"Mode": "rw",
"RW": true,
"Propagation": ""
},
{
"Type": "volume",
"Name": "admin_portal_admin_portal_public_data",
"Source": "/var/lib/docker/volumes/admin_portal_admin_portal_public_data/_data",
"Destination": "/app/public",
"Driver": "local",
"Mode": "rw",
"RW": true,
"Propagation": ""
},
Is there any way, to solve it also with Nomad ?
cu denny