Skip to content

Commit

Permalink
fix: add traefik network and clean deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Pof Magicfingers committed Mar 19, 2019
1 parent d095fa8 commit 777a817
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
3 changes: 3 additions & 0 deletions deploy.files
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
docker-compose.production.yml
containerctl.sh
config
2 changes: 1 addition & 1 deletion deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ ssh $SSH_HOST BASE=$BASE RELEASEN=$RELEASEN 'bash -s' <<'CMD'
mkdir -vp $BASE/releases/$RELEASEN
CMD

rsync -avzPhc docker-compose.production.yml containerctl.sh config $SSH_HOST:$BASE/releases/$RELEASEN/
rsync -avzPhc --recursive --files-from=deploy.files . $SSH_HOST:$BASE/releases/$RELEASEN/

ssh $SSH_HOST BASE=$BASE KEEP_RELEASES=$KEEP_RELEASES RELEASEN=$RELEASEN COMPOSE_PROJECT_NAME=$COMPOSE_PROJECT_NAME 'bash -s' <<'CMD'
# exit when any command fails
Expand Down
1 change: 1 addition & 0 deletions docker-compose.development.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# project_name=podcloud
version: "3.4"
services:
feeds:
Expand Down
6 changes: 6 additions & 0 deletions docker-compose.production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,15 @@ version: "3"
services:
feeds: # scale=3
image: podshows/podcloud-feeds:latest
networks:
- traefik
volumes:
- ./config:/usr/src/app/config
labels:
traefik.enable: true
traefik.backend: "podcloud-feeds"
traefik.frontend.rule: "HostRegexp:feeds.podcloud.fr"

networks:
traefik:
external: true

0 comments on commit 777a817

Please sign in to comment.