Guest User

Untitled

a guest
Feb 28th, 2018
328
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.22 KB | None | 0 0
  1. postgres:
  2. image: "postgres:9.6"
  3. restart: unless-stopped
  4. environment:
  5. POSTGRES_USER: awx
  6. POSTGRES_PASSWORD: ___postgres_passwd
  7. POSTGRES_DB: awx
  8. PGDATA: /var/lib/postgresql/data/pgdata
  9. command: postgres -c wal_level=replica
  10. volumes:
  11. - ./postgres:/var/lib/postgresql/data
  12.  
  13. rabbitmq:
  14. image: "rabbitmq:3"
  15. restart: unless-stopped
  16. environment:
  17. RABBITMQ_DEFAULT_VHOST: awx
  18.  
  19. memcached:
  20. image: "memcached:alpine"
  21. restart: unless-stopped
  22.  
  23. awx_web:
  24. image: "ansible/awx_web:latest"
  25. restart: unless-stopped
  26. links:
  27. - rabbitmq
  28. - memcached
  29. - postgres
  30. hostname: awxweb
  31. user: root
  32. environment:
  33. SECRET_KEY: ___secret_key
  34. DATABASE_USER: awx
  35. DATABASE_PASSWORD: __postgres_passwd
  36. DATABASE_NAME: awx
  37. DATABASE_PORT: 5432
  38. DATABASE_HOST: postgres
  39. RABBITMQ_USER: guest
  40. RABBITMQ_PASSWORD: guest
  41. RABBITMQ_HOST: rabbitmq
  42. RABBITMQ_PORT: 5672
  43. RABBITMQ_VHOST: awx
  44. MEMCACHED_HOST: memcached
  45. MEMCACHED_PORT: 11211
  46. VIRTUAL_HOST: ___example.com
  47. LETSENCRYPT_HOST: ___example.com
  48. LETSENCRYPT_EMAIL: ___ssl@example.com
  49.  
  50. awx_task:
  51. image: "ansible/awx_task:latest"
  52. restart: unless-stopped
  53. links:
  54. - rabbitmq
  55. - memcached
  56. - awx_web:awxweb
  57. - postgres
  58. hostname: awx
  59. user: root
  60. environment:
  61. SECRET_KEY: ___secret_key
  62. DATABASE_USER: awx
  63. DATABASE_PASSWORD: ___postgres_passwd
  64. DATABASE_NAME: awx
  65. DATABASE_PORT: 5432
  66. DATABASE_HOST: postgres
  67. RABBITMQ_USER: guest
  68. RABBITMQ_PASSWORD: guest
  69. RABBITMQ_HOST: rabbitmq
  70. RABBITMQ_PORT: 5672
  71. RABBITMQ_VHOST: awx
  72. MEMCACHED_HOST: memcached
  73. MEMCACHED_PORT: 11211
  74.  
  75. nginx:
  76. image: jwilder/nginx-proxy
  77. restart: unless-stopped
  78. hostname: nginx-proxy
  79. restart: always
  80. ports:
  81. - 80:80
  82. - 443:443
  83. volumes:
  84. - ./nginx/certs:/etc/nginx/certs:ro
  85. - ./nginx/htpasswd:/etc/nginx/htpasswd:ro
  86. - ./nginx/vhost.d:/etc/nginx/vhost.d
  87. - ./nginx/html:/usr/share/nginx/html
  88. - /var/run/docker.sock:/tmp/docker.sock:ro
  89.  
  90. letsencrypt:
  91. image: jrcs/letsencrypt-nginx-proxy-companion
  92. restart: unless-stopped
  93. hostname: letsencrypt-nginx
  94. restart: always
  95. volumes_from:
  96. - nginx
  97. volumes:
  98. - ./nginx/certs:/etc/nginx/certs:rw
  99. - /var/run/docker.sock:/var/run/docker.sock:ro
Add Comment
Please, Sign In to add comment