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

docker compose 2.2.1 no key saved in .env #1743

Closed
gimler opened this issue May 2, 2016 · 4 comments
Closed

docker compose 2.2.1 no key saved in .env #1743

gimler opened this issue May 2, 2016 · 4 comments
Milestone

Comments

@gimler
Copy link

gimler commented May 2, 2016

Before submitting your issue, please make sure that you've checked all of the checkboxes below.

Your setup

  • What version of Cachet? v2.2.1
  • What database driver? MySQL? Postgres? SQLite? postgres
  • What version of PHP? PHP 7.0.5-3

Expected behaviour

key is inserted into .env file. it works with 2.2.0

Actual behaviour

no key is inserted into .env file

Steps to reproduce

docker-compose.yml

version: "2"

services:
  nginx:
    image: nginx:stable-alpine
    volumes:
      - ./init/nginx-site.conf:/etc/nginx/conf.d/default.conf
    ports:
      - 82:8000
    links:
      - cachet
    volumes_from:
      - cachet
    depends_on:
      - cachet
  postgres:
    image: postgres:9.5
    environment:
      - POSTGRES_USER=postgres
      - POSTGRES_PASSWORD=postgres
  cachet:
    image: cachethq/docker:2.2.0
    expose:
      - 9000
    links:
      - postgres:postgres
    environment:
      - DB_DRIVER=pgsql
      - DB_HOST=postgres
      - DB_DATABASE=postgres
      - DB_USERNAME=postgres
      - DB_PASSWORD=postgres
    volumes:
      - /var/www
    depends_on:
      - postgres
docker-compose up -d 
docker exec -i docker_cachet_1  php artisan key:generate
docker exec -i docker_cachet_1  cat .env
@GrahamCampbell
Copy link
Contributor

I don't think the docker version works like this. Please ask the team that maintain our docker repo.

@GrahamCampbell
Copy link
Contributor

@jrabbit
Copy link

jrabbit commented May 4, 2016

It should just work, the .env is on a volume and is persisted. Also theres no editor in the image so users can't edit the .env

@jbrooksuk
Copy link
Member

Yeah, the .env file is setup for you OOTB.

@GrahamCampbell GrahamCampbell added this to the V2.3.0 milestone May 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants