Skip to content

Commit

Permalink
Docker: moves ssh config for capistrano to its own docker-compose file
Browse files Browse the repository at this point in the history
  • Loading branch information
andreslucena committed Jul 31, 2019
1 parent dd83a9f commit 122231a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
9 changes: 9 additions & 0 deletions docker-compose.deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: '3'
services:
app:
volumes:
# For deploy with capistrano, pass the .ssh/config and ssh-agent
- ~/.ssh:/root/.ssh
- $SSH_AUTH_SOCK:/ssh-agent
environment:
- SSH_AUTH_SOCK=/ssh-agent
4 changes: 0 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,11 @@ services:
- .:/app
- bundle:/usr/local/bundle
- node_modules:/app/node_modules
# For deploy with capistrano, pass the .ssh/config and ssh-agent
- ~/.ssh:/root/.ssh
- $SSH_AUTH_SOCK:/ssh-agent
environment:
- PORT=3000
- DATABASE_HOST=pg
- DATABASE_USERNAME=postgres
- RAILS_ENV=development
- SSH_AUTH_SOCK=/ssh-agent
ports:
- 3000:3000
links:
Expand Down

0 comments on commit 122231a

Please sign in to comment.