Skip to content

Commit

Permalink
build(docker): add a docker compose file to test connection through s…
Browse files Browse the repository at this point in the history
…sh tunnel
  • Loading branch information
danvergara committed Dec 17, 2024
1 parent a0a6fdc commit 30d1445
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions docker-compose.ssh.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
version: "3.8"
services:
ssh:
image: rastasheep/ubuntu-sshd:latest
container_name: test-ssh
ports:
- "2222:22"
environment:
- ROOT_PASSWORD=root
networks:
- private-network
- public-network

db:
image: postgres:15
container_name: test-postgres
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
- POSTGRES_DB=users
networks:
- private-network

networks:
private-network:
internal: true # Makes this network inaccessible from outside Docker
public-network:

0 comments on commit 30d1445

Please sign in to comment.