Filip Pytloun | 3a1e3d3 | 2017-02-23 15:02:54 +0100 | [diff] [blame] | 1 | parameters: |
Marek Celoud | dd1e6bc | 2017-03-22 16:18:09 +0100 | [diff] [blame] | 2 | _param: |
| 3 | docker_image_aptly: |
| 4 | api: tcpcloud/aptly-api |
| 5 | public: tcpcloud/aptly-public |
Filip Pytloun | 3a1e3d3 | 2017-02-23 15:02:54 +0100 | [diff] [blame] | 6 | docker: |
| 7 | client: |
| 8 | service: |
| 9 | aptly-api: |
| 10 | environment: |
| 11 | EMAIL_ADDRESS: ${_param:admin_email} |
| 12 | restart: |
| 13 | condition: any |
| 14 | image: ${_param:docker_image_aptly:api} |
| 15 | ports: |
| 16 | - 18084:8080 |
| 17 | volume: |
| 18 | site: |
| 19 | type: bind |
| 20 | source: /srv/volumes/aptly |
| 21 | destination: /var/lib/aptly |
| 22 | aptly-public: |
| 23 | replicas: 3 |
| 24 | restart: |
| 25 | condition: any |
| 26 | image: ${_param:docker_image_aptly:public} |
| 27 | ports: |
| 28 | - 18085:80 |
| 29 | volume: |
| 30 | site: |
| 31 | type: bind |
| 32 | source: /srv/volumes/aptly/public |
| 33 | destination: /var/www/html |