Skip to content
This repository has been archived by the owner on Feb 21, 2019. It is now read-only.

Tweaks I needed for my installation #2

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

toastboy70
Copy link

Hi,

Thanks for this work, it's very useful to me!

I hope I've got the procedure right: I'm more used to Mercurial than git. These are patches I needed to make nginx work with my collection of containers. In particular I needed to tweak the template to get it to work with containers where I was forced to change the exposed ports to avoid clashes, e.g.:

version: '3'

services:
  jira:
    image: "cptactionhank/atlassian-jira-software"
    container_name: jira
    restart: unless-stopped
    environment:
      - PUID=1000
      - PGID=1000
      - VIRTUAL_HOST=jira.example.com
      - VIRTUAL_PORT=28080
      - LETSENCRYPT_HOST=jira.example.com
      - LETSENCRYPT_EMAIL=bots@example.com
    ports:
      - "28080:8080"
    volumes:
      - "./jira:/var/atlassian/jira"

I found I needed to replace instances of Port with HostPort and all was well. The other commits were to make sure the nginx container was restarted when the host restarts, and just some .gitignore housekeeping.

@pierreozoux
Copy link
Member

Sorry for the delay, @almereyda could you take a look please?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants