exclude dev docker-compose

This commit is contained in:
cupcakearmy 2019-03-24 01:24:27 +01:00
parent 438db6bf63
commit bf1da40f21
2 changed files with 8 additions and 3 deletions

View File

@ -24,11 +24,10 @@ steps:
target: /srv/web/home target: /srv/web/home
sources: sources:
- ./public - ./public
- ./docker-compose.yml
- ./docker-compose.prod.yml - ./docker-compose.prod.yml
commands: commands:
- docker-compose -f docker-compose.yml -f docker-compose.prod.yml down - docker-compose -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 up -d
when: when:
event: push event: push
branch: master branch: master

View File

@ -2,6 +2,12 @@ version: '3'
services: services:
home: home:
image: nginx:alpine
restart: always
ports:
- 80
volumes:
- ./public:/usr/share/nginx/html:ro
networks: networks:
- traefik - traefik
labels: labels: