Created
September 4, 2024 01:30
-
-
Save jflaflamme/6eeea7ea2ecaa35b0bb8a352cd506d93 to your computer and use it in GitHub Desktop.
Docker compose file for traccar behind a containerized reverse proxy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| services: | |
| traccar: | |
| image: traccar/traccar:6.4-alpine | |
| container_name: traccar | |
| hostname: traccar | |
| restart: unless-stopped | |
| # remove networks if not using containerized nginx-proxy | |
| networks: | |
| - local-dev | |
| environment: | |
| VIRTUAL_HOST: <your fqdn> | |
| VIRTUAL_PORT: 8082 | |
| LETSENCRYPT_HOST: <your fqdn> | |
| ports: | |
| - "5000-5150:5000-5150" | |
| # volumes or use <volumename>: | |
| volumes: | |
| - /data/traccar/logs:/opt/traccar/logs:rw | |
| - /data/traccar/traccar.xml:/opt/traccar/conf/traccar.xml:ro | |
| - /data/traccar/data/:/opt/traccar/data:rw | |
| # remove networks if not using containerized nginx-proxy | |
| networks: | |
| local-dev: | |
| external: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment