Advertisement
jvanmelckebeke

Untitled

Oct 24th, 2024
11
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.04 KB | None | 0 0
  1. version: "3.8"
  2.  
  3. #x-gpu-settings: &gpu-settings
  4. # deploy:
  5. # resources:
  6. # reservations:
  7. # devices:
  8. # - driver: nvidia
  9. # count: all
  10. # capabilities: [ gpu ]
  11.  
  12.  
  13. x-default-env: &default-env
  14. TZ: "Europe/Brussels"
  15. PUID: 1000
  16. PGID: 1000
  17.  
  18. x-logging: &logging
  19. logging:
  20. driver: json-file
  21. options:
  22. max-size: 1m
  23.  
  24. x-default: &default
  25. <<: *logging
  26. restart: unless-stopped
  27. networks:
  28. - default
  29.  
  30. services:
  31. portainer:
  32. container_name: portainer
  33. image: portainer/portainer-ce:latest
  34. <<: *default
  35. ports:
  36. - 9080:9000
  37. - 9443:9443
  38. - 8777:8000
  39. volumes:
  40. - /var/run/docker.sock:/var/run/docker.sock
  41. - portainer_data:/data
  42. networks:
  43. - default
  44. labels:
  45. - "traefik.http.routers.portainer.rule=Host(`portainer.laptop.local`)"
  46. - "traefik.http.services.portainer.loadbalancer.server.port=9000"
  47.  
  48.  
  49. traefik:
  50. container_name: traefik
  51. labels:
  52. - "traefik.http.routers.traefik.rule=Host(`traefik.laptop.local`)"
  53. - "traefik.http.services.traefik.loadbalancer.server.port=8080"
  54. image: traefik:v2.10
  55. command:
  56. - "--api.insecure=true"
  57. - "--providers.docker"
  58. - "--log.level=INFO"
  59. - "--accesslog=true"
  60. ports:
  61. - 80:80
  62. - 443:443
  63. - 8080:8080
  64. volumes:
  65. - /var/run/docker.sock:/var/run/docker.sock:ro
  66. - ./traefik/:/etc/traefik/
  67. <<: *default
  68.  
  69. syncthing:
  70. container_name: syncthing
  71. hostname: jarivm-laptop
  72. image: syncthing/syncthing
  73. volumes:
  74. - /home/jarivm/syncthing:/var/syncthing
  75. - /home/jarivm/Repos:/var/syncthing/Repos
  76. <<: *logging
  77. restart: unless-stopped
  78. network_mode: host
  79. environment:
  80. <<: *default-env
  81. labels:
  82. - "traefik.http.routers.syncthing.rule=Host(`syncthing`)"
  83. - "traefik.http.services.syncthing.loadbalancer.server.port=8384"
  84.  
  85.  
  86. volumes:
  87. portainer_data:
  88.  
  89.  
  90. networks:
  91. default:
  92. driver: bridge
  93. name: housekeeping
  94.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement