aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--composer/registry/docker-compose.yml17
-rw-r--r--docker.yml21
2 files changed, 38 insertions, 0 deletions
diff --git a/composer/registry/docker-compose.yml b/composer/registry/docker-compose.yml
new file mode 100644
index 0000000..d9a9fa9
--- /dev/null
+++ b/composer/registry/docker-compose.yml
@@ -0,0 +1,17 @@
+version: '2'
+volumes:
+ registry:
+ external:
+ name: registry
+services:
+ registry:
+ ports:
+ - "127.0.0.1:5000:5000"
+ image: registry:2
+ volumes:
+ - "registry:/var/lib/registry"
+ environment:
+ REGISTRY_STORAGE_MAINTENANCE: |-
+ readonly:
+ enabled: true
+ restart: always
diff --git a/docker.yml b/docker.yml
index a067fb6..81fcfcd 100644
--- a/docker.yml
+++ b/docker.yml
@@ -26,3 +26,24 @@
build: yes
#state: absent
project_src: composer/grafana
+ - name: registry
+ docker_service:
+ #recreate: always
+ #build: yes
+ project_src: composer/registry
+ - name: vpn
+ docker_service:
+ project_name: vpn
+ definition:
+ version: '2'
+ volumes:
+ openvpn-certs:
+ external:
+ name: openvpn-pawel
+ services:
+ openvpn:
+ image: kylemanna/openvpn
+ network_mode: host
+ volumes:
+ - "openvpn-certs:/etc/openvpn"
+ privileged: true