Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to disable TLS/HTTPS from the docker-compose setup for dev purposes #20703

Open
claudioc opened this issue Nov 14, 2022 · 2 comments
Open
Labels
suggestion Feature suggestion

Comments

@claudioc
Copy link

Pitch

(on a MacBook Pro M1) Once the docker-compose is up and running, with all the services, I cannot open the web interface on http://something.local:3000 because apparently, the server is expecting a TLS connection. There should be a way to disable this from the environment file, otherwise an nginx proxy server is needed even for local development?

Motivation

Currently the docker-compose setup is probably the only, simple and feasible way to run Mastodon on a MacBookPro M1 because Vagrant doesn't really work (VirtualBox on M1 is still very early alpha and breaks).

Related: #16747

@claudioc claudioc added the suggestion Feature suggestion label Nov 14, 2022
@claudioc claudioc changed the title Disabling TLS/HTTPS from the docker-compose setup for dev purposes Option to disable TLS/HTTPS from the docker-compose setup for dev purposes Nov 14, 2022
@nyura123
Copy link

@claudioc I'm running mastodon locally on my 2015 Mac. My setup was roughly this:

  1. bundle install. For postgres, I installed Postgres app, and had to add a special config in ~/.bundle/config:
---
BUNDLE_BUILD__PG: "--with-pg-config=/Applications/Postgres.app/Contents/Versions/latest/bin/pg_config"
  1. bundle exec rake mastodon:setup. It generated .env.production which I copied to .env.development
  2. Run redis via Docker: docker run -d --name redis1 -p 6379:6379 redis:7-alpine the first time only, then docker container start redis1 going forward.
  3. (separate terminal) Copy .env.development to .env, and run node ./streaming (optional, for live UI updating)
  4. (separate terminal) RAILS_ENV=development bundle exec sidekiq
  5. (separate terminal) RAILS_ENV=development bundle exec rails s -p 3000
  6. for uploading files, I needed to install ImageMagick: brew install imagemagick

@sneko
Copy link

sneko commented Nov 20, 2023

@claudioc any solution since then?

Thank you,

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

No branches or pull requests

3 participants