blob: 36c719b8adc0ba41e996d941f9e5a05ddaf98bff [file] [log] [blame]
Filip Pytloune7d4f862017-08-04 13:11:51 +02001classes:
2- system.docker
Filip Pytloun7d6144a2017-04-13 13:36:45 +02003parameters:
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 Pytloune7d4f862017-08-04 13:11:51 +020014 https_proxy: ${_param:docker_https_proxy}
15 http_proxy: ${_param:docker_http_proxy}
Filip Pytloun7d6144a2017-04-13 13:36:45 +020016 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