Guest User

Untitled

a guest
Jun 12th, 2018
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. version: '2'
  2.  
  3. # Named volumes
  4. volumes:
  5. # Postgres Data
  6. start-postgres-data:
  7. driver: local
  8.  
  9.  
  10.  
  11. # Redis Data
  12. start-redis-data:
  13. driver: local
  14.  
  15. services:
  16. # Postgres (10.3)
  17. postgres:
  18. image: postgres:10.3
  19. container_name: start-postgres
  20. volumes:
  21. - start-postgres-data:/var/lib/postgresql/data
  22. ports:
  23. - "5432:5432"
  24. environment:
  25. - POSTGRES_PASSWORD=start
  26. - POSTGRES_DB=start
  27. - POSTGRES_USER=start
  28.  
  29. # Redis
  30. cache:
  31. image: redis:4.0
  32. container_name: start-redis
  33. command: --appendonly yes
  34. volumes:
  35. - start-redis-data:/data
  36. ports:
  37. - "6379:6379"
  38.  
  39. # PHP (with Nginx)
  40. # you can change from nginx to apache, just change session 'image'
  41. app:
  42. image: ambientum/php:7.2-nginx
  43. container_name: start-app
  44. volumes:
  45. - .:/var/www/app
  46. ports:
  47. - "81:8181"
  48. links:
  49. - postgres
  50. - cache
Add Comment
Please, Sign In to add comment