You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

docker-compose.yml 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. version: '3.8'
  2. networks:
  3. net:
  4. driver: bridge
  5. attachable: true
  6. ipam:
  7. config:
  8. - subnet: 172.172.172.0/24
  9. services:
  10. web:
  11. image: "traefik:v2.2"
  12. command:
  13. #- "--log.level=DEBUG"
  14. - "--api"
  15. - "--api.insecure=true"
  16. - "--api.dashboard=true"
  17. #https://github.com/traefik/traefik/issues/5142#issuecomment-527085036
  18. - "--entrypoints.traefik.address=:9090"
  19. - "--entrypoints.http.address=:80"
  20. #- "--entrypoints.ws.address=:8080"
  21. - "--providers.docker=true"
  22. - "--providers.docker.exposedbydefault=false"
  23. - "--global.sendanonymoususage=false"
  24. ports:
  25. - "80:80"
  26. networks:
  27. - net
  28. volumes:
  29. - "/var/run/docker.sock:/var/run/docker.sock:ro"
  30. labels:
  31. - traefik.enable=true
  32. - traefik.docker.network=armory_web-net
  33. - traefik.http.routers.traefik-api-http.rule=Host(`traefik.localhost`)
  34. - traefik.http.routers.traefik-api-http.entrypoints=http
  35. - traefik.http.routers.traefik-api-http.service=api@internal
  36. - traefik.http.services.traefik-api.loadbalancer.server.port=9090
  37. app:
  38. image: armory/app:devel
  39. build: .
  40. restart: unless-stopped
  41. networks:
  42. - net
  43. depends_on:
  44. - db
  45. labels:
  46. - traefik.enable=true
  47. - traefik.docker.network=armory_net
  48. - traefik.http.routers.armory-web.rule=Host(`armory.localhost`)
  49. - traefik.http.routers.armory-web.entrypoints=http #,ws
  50. - traefik.http.routers.armory-web.service=armory-web-srv
  51. - traefik.http.services.armory-web-srv.loadbalancer.server.port=8080
  52. db:
  53. image: mariadb:10.5.5
  54. hostname: db
  55. networks:
  56. net:
  57. ipv4_address: '172.172.172.172'
  58. environment:
  59. - MYSQL_ROOT_PASSWORD=evenmuchmoresecreter
  60. - MYSQL_PASSWORD=muchsecretwow
  61. - MYSQL_DATABASE=armory
  62. - MYSQL_USER=armory-app
  63. adminer:
  64. image: adminer:4.7.7
  65. networks:
  66. - net
  67. labels:
  68. - traefik.enable=true
  69. - traefik.docker.network=armory_net
  70. - traefik.http.routers.adminer.rule=Host(`adminer.localhost`)
  71. - traefik.http.routers.adminer.entrypoints=http #,ws
  72. - traefik.http.routers.adminer.service=adminer-srv
  73. - traefik.http.services.adminer-srv.loadbalancer.server.port=8080