From bf1da40f21b086e24ce3eb6adc2831c6df7a29e6 Mon Sep 17 00:00:00 2001 From: cupcakearmy Date: Sun, 24 Mar 2019 01:24:27 +0100 Subject: [PATCH] exclude dev docker-compose --- .drone.yml | 5 ++--- docker-compose.prod.yml | 6 ++++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 40d2cf8..54113b5 100644 --- a/.drone.yml +++ b/.drone.yml @@ -24,11 +24,10 @@ steps: target: /srv/web/home sources: - ./public - - ./docker-compose.yml - ./docker-compose.prod.yml commands: - - docker-compose -f docker-compose.yml -f docker-compose.prod.yml down - - docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d + - docker-compose -f docker-compose.prod.yml down + - docker-compose -f docker-compose.prod.yml up -d when: event: push branch: master \ No newline at end of file diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index 39365a0..8175550 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -2,6 +2,12 @@ version: '3' services: home: + image: nginx:alpine + restart: always + ports: + - 80 + volumes: + - ./public:/usr/share/nginx/html:ro networks: - traefik labels: