Filip Pytloun | e7d4f86 | 2017-08-04 13:11:51 +0200 | [diff] [blame] | 1 | classes: |
| 2 | - system.docker |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 3 | parameters: |
| 4 | _param: |
azvyagintsev | 4c89c12 | 2018-02-27 12:52:35 +0200 | [diff] [blame] | 5 | docker_stack_aptly_public_replicas: 3 |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 6 | docker_image_aptly: |
Jakub Josef | 86b0782 | 2018-04-10 14:45:52 +0200 | [diff] [blame] | 7 | # This image is temporary replacement for mirantis/aptly-api because of acquire_by_hash bug |
| 8 | # https://github.com/smira/aptly/pull/697. We waiting for new release of aptly |
| 9 | api: breton/aptly-api |
| 10 | #api: mirantis/aptly-api |
| 11 | public: mirantis/aptly-public |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 12 | docker: |
| 13 | client: |
| 14 | stack: |
| 15 | aptly: |
| 16 | environment: |
| 17 | EMAIL_ADDRESS: ${_param:admin_email} |
Filip Pytloun | e7d4f86 | 2017-08-04 13:11:51 +0200 | [diff] [blame] | 18 | https_proxy: ${_param:docker_https_proxy} |
| 19 | http_proxy: ${_param:docker_http_proxy} |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 20 | service: |
| 21 | api: |
| 22 | deploy: |
| 23 | restart_policy: |
| 24 | condition: any |
| 25 | image: ${_param:docker_image_aptly:api} |
| 26 | ports: |
| 27 | - 18084:8080 |
| 28 | volumes: |
| 29 | - /srv/volumes/aptly:/var/lib/aptly |
| 30 | public: |
| 31 | deploy: |
azvyagintsev | 4c89c12 | 2018-02-27 12:52:35 +0200 | [diff] [blame] | 32 | replicas: ${_param:docker_stack_aptly_public_replicas} |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 33 | restart_policy: |
| 34 | condition: any |
| 35 | image: ${_param:docker_image_aptly:public} |
| 36 | ports: |
| 37 | - 18085:80 |
| 38 | volumes: |
| 39 | - /srv/volumes/aptly/public:/var/www/html |