Traccar-web with docker

Tracking Faso8 months ago

hello,
my server works well on a docker-compose containing a postgre container in my VPS, however I want to design my site using traccar-web. how to connect my traccar container with the traccar-web folder? should I use a docker volume?

Anton Tananaev8 months ago

The web app should be a part of the package, so it's already included in the Traccar docker image.

Tracking Faso8 months ago

where is the path traccar-web/modern found in the container?

volumes: # Defines volume mounts for the container
     - My local directory/traccar-web/modern/: traccar modern file? # Mounts the modern folder from the host to the container 

Both volumes work well

volumes: # Defines volume mounts for the container
       - My local directory/traccar/logs:/opt/traccar/logs:rw # Mounts the logs directory from the host to the container with read and write permissions
      - My local directory/traccar/conf/traccar.xml:/opt/traccar/conf/traccar.xml:ro # Mounts the traccar.xml config file from the host to the container  with read-only permissions
Tracking Faso8 months ago

@Anton Tananaev
What is the direct path of the modern folder in the container please?

Anton Tananaev8 months ago

It should be /opt/traccar/modern for the modern app.

Tracking Faso8 months ago

Thank you, it is work fine