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: |
| 5 | docker_image_aptly: |
| 6 | api: tcpcloud/aptly-api |
| 7 | public: tcpcloud/aptly-public |
| 8 | docker: |
| 9 | client: |
| 10 | stack: |
| 11 | aptly: |
| 12 | environment: |
| 13 | EMAIL_ADDRESS: ${_param:admin_email} |
Filip Pytloun | e7d4f86 | 2017-08-04 13:11:51 +0200 | [diff] [blame] | 14 | https_proxy: ${_param:docker_https_proxy} |
| 15 | http_proxy: ${_param:docker_http_proxy} |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 16 | service: |
| 17 | api: |
| 18 | deploy: |
| 19 | restart_policy: |
| 20 | condition: any |
| 21 | image: ${_param:docker_image_aptly:api} |
| 22 | ports: |
| 23 | - 18084:8080 |
| 24 | volumes: |
| 25 | - /srv/volumes/aptly:/var/lib/aptly |
| 26 | public: |
| 27 | deploy: |
| 28 | replicas: 3 |
| 29 | restart_policy: |
| 30 | condition: any |
| 31 | image: ${_param:docker_image_aptly:public} |
| 32 | ports: |
| 33 | - 18085:80 |
| 34 | volumes: |
| 35 | - /srv/volumes/aptly/public:/var/www/html |