Set environment variable for Docker Compose project name
This commit is contained in:
parent
1618a74f8d
commit
239adbeb9c
1 changed files with 4 additions and 0 deletions
|
@ -33,6 +33,10 @@ RUN chmod +x /app/entrypoint.sh /app/service.ssh.sh /app/service.ttyd.sh
|
|||
RUN mkdir -p /srv/stack
|
||||
WORKDIR /srv/stack
|
||||
|
||||
# Set environment variable for Docker Compose project name
|
||||
# This is needed because inside ttyd docker compose defaults to hostname + directory for the project name
|
||||
ENV COMPOSE_PROJECT_NAME=stack
|
||||
|
||||
EXPOSE 22 1234
|
||||
|
||||
ENTRYPOINT ["/app/entrypoint.sh"]
|
||||
|
|
Loading…
Reference in a new issue