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: |
| 7 | client: |
| 8 | stack: |
| 9 | aptly: |
| 10 | environment: |
| 11 | EMAIL_ADDRESS: ${_param:admin_email} |
Filip Pytloun | e7d4f86 | 2017-08-04 13:11:51 +0200 | [diff] [blame] | 12 | https_proxy: ${_param:docker_https_proxy} |
| 13 | http_proxy: ${_param:docker_http_proxy} |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 14 | service: |
| 15 | api: |
| 16 | deploy: |
| 17 | restart_policy: |
| 18 | condition: any |
Alexander Evseev | 7e4d32e | 2018-11-27 10:19:51 +0100 | [diff] [blame^] | 19 | image: ${_param:docker_image_aptly:base} |
| 20 | command: 'aptly api serve -no-lock' |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 21 | ports: |
| 22 | - 18084:8080 |
| 23 | volumes: |
| 24 | - /srv/volumes/aptly:/var/lib/aptly |
| 25 | public: |
| 26 | deploy: |
azvyagintsev | 4c89c12 | 2018-02-27 12:52:35 +0200 | [diff] [blame] | 27 | replicas: ${_param:docker_stack_aptly_public_replicas} |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 28 | restart_policy: |
| 29 | condition: any |
| 30 | image: ${_param:docker_image_aptly:public} |
| 31 | ports: |
| 32 | - 18085:80 |
| 33 | volumes: |
| 34 | - /srv/volumes/aptly/public:/var/www/html |