app icon indicating copy to clipboard operation
app copied to clipboard

Docker Image Outdated?

Open viveksjain opened this issue 2 years ago ā€¢ 36 comments

Thanks for this great project. I guess this is pretty much same request as #364, it looks like docker image is over a year old. Is it possible to publish a new release? Docker-compose would be useful as well for quickly getting started but I guess that is tracked in #355.

viveksjain avatar Apr 21 '22 02:04 viveksjain

@viveksjain we'll publish the new image in the next coming months. Our calendar is unfortunately packed at the moment but rest assured that releasing new image is in our todo list :).

nguyenkims avatar Apr 22 '22 08:04 nguyenkims

@nguyenkims does the site simple checkout a specific commit and runs on this version instead of docker images? Would it be possible to document somewhere which commit the site is currently working on? I assume that this version would be stable enough for most use-cases while still giving the new functionality.

henokv avatar Apr 26 '22 17:04 henokv

@henokv We deploy new versions quite often, you can see the current version running at https://app.simplelogin.io/git

And yes you can run the latest version on your server. This version isn't tested in a self hosted setup though so run it at your own risk :).

nguyenkims avatar Apr 28 '22 10:04 nguyenkims

The latest edit in changelog goes back to a year (3.4.0). You should consider shorter iteration cycles, especially to publish patches (if necessary).

You could also setup a CI/CD, to release at least a simplelogin/app-dev on docker hub, for those who are adventurous šŸ˜‰

Heziode avatar May 04 '22 11:05 Heziode

Any news about a new up-to-date docker image? Or should now every selfhoster build it's own docker image?

pocki avatar Jun 30 '22 17:06 pocki

There's simplelogin/app-ci on Docker Hub which appears to mirror GitHub tags, but I doubt it's 'officially' supported. I haven't tried it myself yet - no migration instructions etc.

alpha-tango-kilo avatar Jun 30 '22 21:06 alpha-tango-kilo

Thanks @alpha-tango-kilo

I used the upgrade infos from here 4.6.2-beta/docs/upgrade.md but used the simplelogin/app-ci:v4.7.3 images instead

At the upgrade and also at starting the containers I am getting some warnings, but it seems everything is working.

Paddle param not set
Upload files to local dir
Symbol 'mailbox_or_url_list' is unreachable
Symbol 'delim' is unreachable
Symbol 'mailbox_or_url' is unreachable
Symbol 'mailbox' is unreachable
Symbol 'url' is unreachable
Symbol 'angle_addr' is unreachable
Symbol 'name_addr' is unreachable
Symbol 'phrase' is unreachable
Symbol 'mailbox_or_url_list' is unreachable
Symbol 'delim' is unreachable
Symbol 'mailbox_or_url' is unreachable
Symbol 'mailbox' is unreachable
Symbol 'addr_spec' is unreachable
Symbol 'angle_addr' is unreachable
Symbol 'name_addr' is unreachable
Symbol 'phrase' is unreachable
Symbol 'local_part' is unreachable
Symbol 'domain' is unreachable
Symbol 'quoted_string' is unreachable
Symbol 'domain_literal' is unreachable
Symbol 'quoted_string_text' is unreachable
Symbol 'domain_literal_text' is unreachable
Symbol 'mailbox_or_url_list' is unreachable
Symbol 'delim' is unreachable

pocki avatar Jul 01 '22 11:07 pocki

Nice one! Hadn't thought to check other branches. Might have to try it myself when my stress levels are too low šŸ˜›

alpha-tango-kilo avatar Jul 01 '22 15:07 alpha-tango-kilo

Hi @nguyenkims Any update on a new stable release of the Docker image? It seems odd that there have been numerous 4.x.x releases and no image to deploy this with.

Thanks! :)

thecosmicfrog avatar Jul 12 '22 23:07 thecosmicfrog

@thecosmicfrog we are beta testing the new version on 4.6.2-beta https://github.com/simple-login/app/tree/4.6.2-beta, don't hesitate to check it out.

nguyenkims avatar Jul 15 '22 07:07 nguyenkims

Thanks @nguyenkims. Looks like you have migration instructions too. I'll take a look this weekend.

thecosmicfrog avatar Jul 15 '22 11:07 thecosmicfrog

app [4.6.2-beta] is there in docker but its only available for amd64 not for arm64 when we could expect the same for arm64 ??

sakearzoo avatar Jul 16 '22 12:07 sakearzoo

@sakearzoo I've pushed the image for arm64, can you try now?

nguyenkims avatar Jul 17 '22 13:07 nguyenkims

@nguyenkims it would be helpful if you provide me docker-compose template with tls cert (currently using traefik as reverse proxy)

And i couldn't find any way to configure MTA-STS and other security measures on docker using env?

sakearzoo avatar Jul 17 '22 14:07 sakearzoo

it would be helpful if you provide me docker-compose template with tls cert (currently using traefik as reverse proxy)

@sakearzoo

There are two ongoing/open PRs for Docker Compose support: #309 & #355. They both take slightly different approaches and have slightly different 'extras' (probably part of the reason why they're not merged yet). Take a look and see what you fancy. You probably should be contributing to the conversation there rather than here given it's a completely separate issue.

I've managed to set up a more barebones config that's just strictly the SimpleLogin containers, reach out to me if you'd prefer that to what's already available.

alpha-tango-kilo avatar Jul 17 '22 20:07 alpha-tango-kilo

@alpha-tango-kilo

I've managed to set up a more barebones config that's just strictly the SimpleLogin containers, reach out to me if you'd prefer that to what's already available.

Hi, I'm interested in how you achieved it. I've been used #355 approach but looking for how others do.

nakoo avatar Jul 20 '22 00:07 nakoo

I have a .env file that specifies SIMPLELOGIN_VERSION (only), then my docker-compose.yml is:

version: "2.2"

networks:
  default:
    name: sl-network
    ipam:
      config:
        - subnet: 240.0.0.0/24
          gateway: 240.0.0.1

services:
  postgres:
    image: postgres:12.1
    container_name: sl-db
    ports:
      - "5432:5432"
    volumes:
      - ./sl/db:/var/lib/postgresql/data
    environment:
      - POSTGRES_USER=YOUR_USER
      - POSTGRES_PASSWORD=YOUR_PASSWORD
      - POSTGRES_DB=simplelogin
    restart: unless-stopped
  
  sl-app:
    # The latest tag isn't maintained >:(
    image: simplelogin/app:${SIMPLELOGIN_VERSION:?please specify simplelogin/app version}
    container_name: sl-app
    ports:
      - "7777:7777"
    volumes:
      - ./sl:/sl
      - ./sl/upload:/code/static/upload
      - ./simplelogin.env:/code/.env
      - ./dkim.key:/dkim.key:ro
      - ./dkim.pub.key:/dkim.pub.key:ro
    restart: unless-stopped
  
  sl-email:
    image: simplelogin/app:${SIMPLELOGIN_VERSION:?}
    container_name: sl-email
    command: python email_handler.py
    ports:
      - "20381:20381"
    volumes:
      - ./sl:/sl
      - ./sl/upload:/code/static/upload
      - ./simplelogin.env:/code/.env
      - ./dkim.key:/dkim.key:ro
      - ./dkim.pub.key:/dkim.pub.key:ro
    restart: unless-stopped

  sl-job-runner:
    image: simplelogin/app:${SIMPLELOGIN_VERSION:?}
    container_name: sl-job-runner
    command: python job_runner.py
    volumes:
      - ./sl:/sl
      - ./sl/upload:/code/static/upload
      - ./simplelogin.env:/code/.env
      - ./dkim.key:/dkim.key:ro
      - ./dkim.pub.key:/dkim.pub.key:ro
    restart: unless-stopped

āš Note: your subnet may be different to mine, as it was changed in the getting started guide at one pointāš  Refer to your /etc/postfix/main.cf and see which subnet is in there, if you followed the guide it'll either be 10.0.0.0/24 or 240.0.0.0/24 (just search within the file and it's whichever one has matches).

alpha-tango-kilo avatar Jul 20 '22 17:07 alpha-tango-kilo

@alpha-tango-kilo Why are using version 2.1 for compose file? can I use 3 without any issues?

akash07k avatar Jul 29 '22 11:07 akash07k

Why are using version 2.1 for compose file?

Dunno

Can I use 3 without any issues?

No idea, I'm not providing any technical support for that snippet. Use/Modify at your own risk


My attitude to SimpleLogin is "if it isn't broken, don't fix it" - it's not worth downtime on your email server

alpha-tango-kilo avatar Jul 29 '22 12:07 alpha-tango-kilo

I just upgraded my docker setup from v3.4.0 to v4.14.8 and everything works like a charm. What I did was upgrading it to the simplelogin/app:4.6.2-beta image according to the upgrade.md manual. After this was up and running, I did the exact same thing again, but this time I used simplelogin/app-ci:v4.14.8 as the new image.

As far as I can see, there are no bugs, everything is working absolutely fine without any modifications to the configuration. But I'll keep an eye on it for the next couple days.

kylhuk avatar Sep 21 '22 12:09 kylhuk

Wonderful, I'll also try it

On 9/21/2022 6:15 PM, kylhuk wrote:

I just upgraded my docker setup from |v3.4.0| to |v4.14.8| and everything works like a charm. What I did was upgrading it to the |simplelogin/app:4.6.2-beta| image according to the |upgrade.md| manual. After this was up and running, I did the exact same thing, but replaced the image with |simplelogin/app-ci:v4.14.8|.

As far as I can see, there are no bugs, everything is working absolutely fine without any modifications to the configuration. But I'll keep an eye on it for the next couple days.

ā€” Reply to this email directly, view it on GitHub https://github.com/simple-login/app/issues/916#issuecomment-1253657676, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABQWBMYD4NVIOANJ66YD3RTV7L7OPANCNFSM5T52XS4Q. You are receiving this because you commented.Message ID: @.***>

akash07k avatar Sep 21 '22 13:09 akash07k

Good to know @kylhuk, an update after a longer timeframe (at least a week) would be appreciated! I'm very cautious about updated SimpleLogin because my whole (email) life depends on it lol

alpha-tango-kilo avatar Sep 21 '22 16:09 alpha-tango-kilo

@alpha-tango-kilo up until today, I had no issues at all. You can easily backup everything, just by copying the folder, where you stored all the docker related data. This way you can always revert back to the old (v3.4.0) setup.

kylhuk avatar Oct 03 '22 07:10 kylhuk

Thanks for providing an update, I may give it a go at some point then!

alpha-tango-kilo avatar Oct 03 '22 08:10 alpha-tango-kilo

Is it possible to get a new 4.x Docker stable Version? Thx anyways for your good work.

lenusch avatar Apr 07 '23 09:04 lenusch

I just upgraded my docker setup from v3.4.0 to v4.14.8 and everything works like a charm. What I did was upgrading it to the simplelogin/app:4.6.2-beta image according to the upgrade.md manual. After this was up and running, I did the exact same thing again, but this time I used simplelogin/app-ci:v4.14.8 as the new image.

Thanks for this. I was able to get the latest version running. One caveat; when running the database migration command, use alembic upgrade head instead of flask db upgrade like this;

docker run --rm \
    --name sl-migration \
    -v $(pwd)/sl:/sl \
    -v $(pwd)/sl/upload:/code/static/upload \
    -v $(pwd)/dkim.key:/dkim.key \
    -v $(pwd)/dkim.pub.key:/dkim.pub.key \
    -v $(pwd)/simplelogin.env:/code/.env \
    --network="sl-network" \
    simplelogin/app:4.6.2-beta alembic upgrade head

awg13 avatar May 05 '23 10:05 awg13

And i couldn't find any way to configure MTA-STS and other security measures on docker using env?

@sakearzoo I setup MTA-STS and TLSRPT manually and tried to document that in #1806. Maybe this will help you. Iā€™m happy for any feedback of course.

springcomp avatar Jul 15 '23 20:07 springcomp

Hi, Thanks for this useful guide. I already have my self-hosted mail system (using docker-mailserver on my Unraid server) working properly. The mail system does not use postgres database. Can I somehow run simplelogin dockers on top of it without changing anything on my existing mail system?

europacafe avatar Dec 06 '23 03:12 europacafe

Hey @nguyenkims, the mentioned branch doesn't exists anymore.

maaaathis avatar Dec 22 '23 21:12 maaaathis

@maaaathis which branch you refer to?

nguyenkims avatar Jan 04 '24 12:01 nguyenkims