Advertisement
Guest User

Untitled

a guest
Apr 27th, 2019
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. aptcache:
  2. container_name: aptcache
  3. hostname: aptcache
  4. image: sameersbn/apt-cacher-ng:3.1-2
  5. networks:
  6. - razornet
  7. ports:
  8. - 3142:3142
  9. restart: always
  10. volumes:
  11. - aptcache:/var/cache/aptcache
  12.  
  13. db:
  14. command: postgres
  15. container_name: db
  16. depends_on:
  17. - aptcache
  18. environment:
  19. POSTGRES_DB: $POSTGRES_DB
  20. POSTGRES_HOST: $POSTGRES_HOST
  21. POSTGRES_PASSWORD: $POSTGRES_PASSWORD
  22. POSTGRES_USER: $POSTGRES_USER
  23. PGDATA: $PGDATA
  24. env_file: .env
  25. image: postgres:11.1
  26. links:
  27. - aptcache
  28. networks:
  29. razornet:
  30. aliases:
  31. - postgres
  32. - postgresql
  33. - database
  34. ports:
  35. - $DB_PORT:5432
  36. restart: always
  37. volumes:
  38. - db:$PGDATA
  39.  
  40. redis:
  41. container_name: redis
  42. depends_on:
  43. - aptcache
  44. image: redis:4.0
  45. ports:
  46. - 6379:6379
  47. volumes:
  48. - redis:/data
  49.  
  50. nginx-proxy:
  51. container_name: nginx-proxy
  52. environment:
  53. VIRTUAL_HOST: razormd.test
  54. image: jwilder/nginx-proxy
  55. links:
  56. - aptcache
  57. - frontend
  58. - puma
  59. - cable
  60. networks:
  61. razornet:
  62. aliases:
  63. - nginx
  64. - www
  65. ports:
  66. - 80:80
  67. - 443:443
  68. volumes:
  69. - /var/run/docker.sock:/tmp/docker.sock:ro
  70. - ./docker/web/nginx.conf:/etc/nginx/nginx.conf:ro
  71. - ./docker/web/proxy.conf:/etc/nginx/proxy.conf:ro
  72. - ./backend/public:/app/public/
  73. - ./scripts/dev-keys:/etc/nginx/certs
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement