Advertisement
Guest User

Untitled

a guest
Jan 18th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. version: "3.0"
  2. services:
  3. postgres:
  4. image: 'postgres:9.6'
  5. environment:
  6. - PGDATA=/var/lib/postgresql/data/pgdata
  7. - POSTGRES_PASSWORD=
  8. - POSTGRES_USER=postgres
  9. networks:
  10. - default
  11. volumes:
  12. - 'postgres:/var/lib/postgresql/data'
  13. labels:
  14. description: "Postgresql Database"
  15. service: "postgresql"
  16. redis:
  17. image: redis
  18. ports:
  19. - 6379:6379
  20. volumes:
  21. - 'redis:/data'
  22. command: redis-server --appendonly yes
  23. web:
  24. build:
  25. context: "./"
  26. dockerfile: Dockerfile-development
  27. volumes:
  28. - .:/src
  29. env_file:
  30. - './src/.env'
  31. environment:
  32. - REDIS-URL=redis://redis:6379/
  33. - POSTGRES-URL=postgres://postgres:5432/
  34. depends_on:
  35. - redis
  36. - postgres
  37. ports:
  38. - "3000:3000"
  39. volumes:
  40. redis:
  41. postgres:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement