Try fixing coolify default port issue by changing ssh port

This commit is contained in:
Harish Karumuthil 2024-10-22 12:20:02 +05:30
parent 045aa271bb
commit b7c531f84c
2 changed files with 4 additions and 7 deletions

View File

@ -24,8 +24,10 @@ RUN apt-get install -y --no-install-recommends procps iproute2 vim openssh-serve
rm /var/log/apache2/* ;\
systemctl enable apache2
RUN sed -i 's/#Port 22/Port 2022/' /etc/ssh/sshd_config
EXPOSE 80/tcp
EXPOSE 22/tcp
EXPOSE 2022/tcp
STOPSIGNAL SIGRTMIN+3
VOLUME [ "/var/log/apache2/", "/var/www/" ]

View File

@ -8,13 +8,8 @@ services:
volumes:
- srvroot:/var/www
ports:
- "${PUBLIC_SSH_PORT}:22"
#labels:
# - traefik.http.services.os.loadbalancer.server.port=80
- "${PUBLIC_SSH_PORT}:2022"
environment:
- container=podman
- SERVICE_FQDN_OS_80
- SERVICE_FQDN_PHPCONTAINER_80=/
# Public ssh port number v2
- SSH_PUBLIC_PORT=${PUBLIC_SSH_PORT:-3300}