blob: f4af5c692669130271f6f8af1c7e808ed74c6f7b [file] [log] [blame]
Filip Pytloune7d4f862017-08-04 13:11:51 +02001classes:
2- system.docker
Filip Pytloun7d6144a2017-04-13 13:36:45 +02003parameters:
4 _param:
azvyagintsev4c89c122018-02-27 12:52:35 +02005 docker_stack_aptly_public_replicas: 3
Filip Pytloun7d6144a2017-04-13 13:36:45 +02006 docker:
7 client:
8 stack:
9 aptly:
10 environment:
11 EMAIL_ADDRESS: ${_param:admin_email}
Filip Pytloune7d4f862017-08-04 13:11:51 +020012 https_proxy: ${_param:docker_https_proxy}
13 http_proxy: ${_param:docker_http_proxy}
Filip Pytloun7d6144a2017-04-13 13:36:45 +020014 service:
15 api:
16 deploy:
17 restart_policy:
18 condition: any
Alexander Evseev7e4d32e2018-11-27 10:19:51 +010019 image: ${_param:docker_image_aptly:base}
20 command: 'aptly api serve -no-lock'
Filip Pytloun7d6144a2017-04-13 13:36:45 +020021 ports:
22 - 18084:8080
23 volumes:
24 - /srv/volumes/aptly:/var/lib/aptly
Denis Egorenko4a68c332019-09-06 16:06:23 +040025 - /dev/urandom:/dev/random:ro
Filip Pytloun7d6144a2017-04-13 13:36:45 +020026 public:
27 deploy:
azvyagintsev4c89c122018-02-27 12:52:35 +020028 replicas: ${_param:docker_stack_aptly_public_replicas}
Filip Pytloun7d6144a2017-04-13 13:36:45 +020029 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