aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2020-08-02 18:53:18 -0300
committerEuAndreh <eu@euandre.org>2020-08-02 18:53:18 -0300
commit4f975827454563232d7de12a1163cfe759600306 (patch)
tree9d44633b2555bf988dbd401129a92fb1ced85504
parentUse a name from the environment for the names of the host and the volume (diff)
downloadserver-4f975827454563232d7de12a1163cfe759600306.tar.gz
server-4f975827454563232d7de12a1163cfe759600306.tar.xz
provision.yaml: Create the docker network before starting docker-compose
-rw-r--r--provision.yaml3
1 files changed, 3 insertions, 0 deletions
diff --git a/provision.yaml b/provision.yaml
index a88103e..a202d7f 100644
--- a/provision.yaml
+++ b/provision.yaml
@@ -38,6 +38,9 @@
- name: Restore borg backup when we have a fresh volume
shell: /home/vps/restore-backup.sh
when: lookup('env', 'DESTROY_VOLUME') == "1"
+ - name: Create the required Docker network
+ docker_network:
+ name: nginx-proxy
- name: Start docker-compose
docker_compose:
project_src: /home/vps/