Add CI/CD infrastructure
Change-Id: Id15634c2096394f7de4533c8466e0e0c2e66f8ed
diff --git a/docker/swarm/service/aptly.yml b/docker/swarm/service/aptly.yml
new file mode 100644
index 0000000..d85b1b4
--- /dev/null
+++ b/docker/swarm/service/aptly.yml
@@ -0,0 +1,29 @@
+parameters:
+ docker:
+ client:
+ service:
+ aptly-api:
+ environment:
+ EMAIL_ADDRESS: ${_param:admin_email}
+ restart:
+ condition: any
+ image: ${_param:docker_image_aptly:api}
+ ports:
+ - 18084:8080
+ volume:
+ site:
+ type: bind
+ source: /srv/volumes/aptly
+ destination: /var/lib/aptly
+ aptly-public:
+ replicas: 3
+ restart:
+ condition: any
+ image: ${_param:docker_image_aptly:public}
+ ports:
+ - 18085:80
+ volume:
+ site:
+ type: bind
+ source: /srv/volumes/aptly/public
+ destination: /var/www/html