Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 
 
 

50 righe
1007 B

  1. version: '2'
  2. services:
  3. db:
  4. restart: always
  5. image: postgres:9.5
  6. volumes:
  7. - postgresql:/var/lib/postgresql/data
  8. environment:
  9. POSTGRES_DB: 'postgres'
  10. POSTGRES_USER: 'postgres'
  11. POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
  12. backend:
  13. restart: always
  14. image: lesspass/backend:latest
  15. expose:
  16. - '8000'
  17. volumes:
  18. - www:/backend/www
  19. links:
  20. - db
  21. env_file:
  22. - .env
  23. environment:
  24. DATABASE_ENGINE: 'django.db.backends.postgresql'
  25. DATABASE_NAME: 'postgres'
  26. DATABASE_USER: 'postgres'
  27. DATABASE_HOST: 'db'
  28. DATABASE_PORT: '5432'
  29. frontend:
  30. restart: always
  31. image: lesspass/frontend:latest
  32. nginx:
  33. restart: always
  34. image: lesspass/nginx:letsencrypt
  35. ports:
  36. - '80:80'
  37. - '443:443'
  38. volumes_from:
  39. - backend
  40. volumes:
  41. - ./letsencrypt:/etc/letsencrypt
  42. links:
  43. - backend
  44. - frontend
  45. environment:
  46. - DOMAIN=${DOMAIN}
  47. volumes:
  48. postgresql:
  49. www: