From fcc8e63f3f4e990b15b948ee7028ec4132e2d55b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Dybiec?= Date: Mon, 15 Apr 2019 17:05:25 +0200 Subject: openvpn and docker registry --- composer/registry/docker-compose.yml | 17 +++++++++++++++++ docker.yml | 21 +++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 composer/registry/docker-compose.yml 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 -- cgit v1.2.3