ad1b125417
and prevent it from leaking network resources to the host. Previously, the port binding was effectively useless since the container was already sharing the hosts network (`network_mode: host`). Restrict the port binding to only listen on the local host, blocking all connections from outside the machine.
25 lines
555 B
YAML
25 lines
555 B
YAML
---
|
|
version: "2.1"
|
|
services:
|
|
zellij-e2e:
|
|
image: ghcr.io/linuxserver/openssh-server
|
|
container_name: zellij-e2e
|
|
hostname: zellij-e2e
|
|
environment:
|
|
PUID: 1000
|
|
PGID: 1000
|
|
TZ: Europe/Vienna
|
|
PASSWORD_ACCESS: true
|
|
USER_PASSWORD: test
|
|
USER_NAME: test
|
|
volumes:
|
|
- type: bind
|
|
source: ./target
|
|
target: /usr/src/zellij
|
|
- type: bind
|
|
source: ./src/tests/fixtures
|
|
target: /usr/src/zellij/fixtures
|
|
ports:
|
|
- "127.0.0.1:2222:2222/tcp"
|
|
restart: unless-stopped
|