docker-compose.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. services:
  2. home:
  3. image: home-launcher
  4. hostname: home-launcher
  5. build: .
  6. expose:
  7. - 80
  8. restart: always
  9. volumes:
  10. - /home/pi/www/feed:/usr/share/nginx/html/feed
  11. - ./media:/usr/share/nginx/html/media
  12. - ./.well-known:/usr/share/nginx/html/.well-known
  13. networks:
  14. - traefik
  15. pyapi:
  16. image: pyapi
  17. hostname: home-launcher
  18. build:
  19. context: ./prayer-generator
  20. dockerfile: rest/Dockerfile
  21. environment:
  22. HOST: 192.168.0.20
  23. USER: pgdb
  24. PASSWORD: ${PGDB_PASSWORD}
  25. expose:
  26. - 11888
  27. networks:
  28. - traefik
  29. restart: always
  30. grocery-pyapi:
  31. image: grocery-pyapi
  32. hostname: grocery-pyapi
  33. build:
  34. context: ./grocery-transactions
  35. dockerfile: app/rest/Dockerfile
  36. environment:
  37. HOST: 192.168.0.20
  38. USER: pi
  39. PASSWORD: ${GROCERYDB_PASSWORD}
  40. expose:
  41. - 6772
  42. networks:
  43. - traefik
  44. restart: always
  45. auth:
  46. image: auth
  47. hostname: auth
  48. build:
  49. context: .
  50. dockerfile: Dockerfile-auth
  51. volumes:
  52. - /etc/private-ca:/etc/private-ca:ro
  53. expose:
  54. - 1234
  55. networks:
  56. - traefik
  57. restart: always
  58. networks:
  59. traefik:
  60. external: true