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

Resetup on container recreation #393

Open
AdriDevelopsThings opened this issue Nov 29, 2020 · 1 comment
Open

Resetup on container recreation #393

AdriDevelopsThings opened this issue Nov 29, 2020 · 1 comment

Comments

@AdriDevelopsThings
Copy link

Hello,

when I recreate my Cachet docker container, the Cachet must be resetuped.

But why I should resetup Cachet if I recreate my Cachet container.

Configs

docker-compose.yml

version: "3"

services:
  postgres:
    image: postgres:12-alpine
    volumes:
      - /var/lib/postgresql/data
    environment:
      - POSTGRES_USER=postgres
      - POSTGRES_PASSWORD=************************
    restart: always
  cachet:
    build:
      context: .
      args:
        - cachet_ver=2.4
    ports:
      - 127.0.0.2:81:8000
    links:
      - postgres:postgres
    environment:
      - DB_DRIVER=pgsql
      - DB_HOST=postgres
      - DB_PORT=5432
      - DB_DATABASE=postgres
      - DB_USERNAME=postgres
      - DB_PASSWORD=************************
      - DB_PREFIX=chq_
      - APP_KEY=base64:********
      - APP_LOG=errorlog
      - APP_ENV=${APP_ENV:-production}
      - APP_DEBUG=false
      - DEBUG=false
      - CACHE_DRIVER=database
      - SESSION_DRIVER=database
      - QUEUE_DRIVER=sync
      - MAIL_DRIVER=smtp
      - MAIL_HOST=mail.*****
      - MAIL_PORT=587
      - MAIL_USERNAME=status@****
      - MAIL_PASSWORD=*****
      - MAIL_ADDRESS=status@****
      - MAIL_ENCRYPTION=tls

    depends_on:
      - postgres
    restart: always

Executed command

docker-compose down && docker-compose up -d
@InputObject2
Copy link

There's another environment variable that you can set that will skip the setup on container restart :

DOCKER=true

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

2 participants