Open Fabricio20 opened 5 years ago
@Fabricio20 I'm trying to do the same locally.
Seems like the minimum required environment variables are APP_HOST
, APP_KEY
and your database credentials
. Here is an example of what I did for a minimum config:
33
bytes and check url safe
. Will return something like this: Cwts9iSn4QPkFI2Y0KrpIzgTCKIfz-nvv7jteNRT5dO1
docker-compose.yml
config:version: "3"
services:
postgres:
image: postgres:9.5
volumes:
- /var/lib/postgresql/data
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
restart: always
cachet:
build:
context: .
args:
- cachet_ver=2.4
ports:
- 80:8000
links:
- postgres:postgres
environment:
- APP_DEBUG=false
- APP_URL=http://localhost
- APP_KEY=base64:Cwts9iSn4QPkFI2Y0KrpIzgTCKIfz-nvv7jteNRT5dO1
- DB_DRIVER=pgsql
- DB_HOST=postgres
- DB_PORT=5432
- DB_DATABASE=postgres
- DB_USERNAME=postgres
- DB_PASSWORD=postgres
- DB_PREFIX=chq_
depends_on:
- postgres
restart: on-failure
Everything seems to run; however, I am not able to sign in after setup because of a CSFR error. trying to figure that one out now
I'm currently trying to set up Cachet, but so far I haven't managed to get it up properly.
Attemp 1 (Via Official Image):
Attempt 2 (Via Official Docker Image - No ENV file):
Attempt 3 (Via Docker-Compose Build)
PHP Composer
build (even if build container was started with >2GB memory).Any tips on how I can make a persistent docker setup?