Browse Source

Readme / data directory

pull/31/head
Dominik Schwind 6 years ago
parent
commit
00407b4461
4 changed files with 42 additions and 0 deletions
  1. +2
    -0
      .gitignore
  2. +39
    -0
      README.md
  3. +0
    -0
      data/.gitkeep
  4. +1
    -0
      docker-compose.yml

+ 2
- 0
.gitignore View File

@ -1 +1,3 @@
.DS_Store .DS_Store
/data/*
!data/.gitkeep

+ 39
- 0
README.md View File

@ -153,6 +153,45 @@ Timestamps in Exif data do not include the timezone offset, and there is no stan
This will query the database and find the closest matching location for when your clock read that time. This will query the database and find the closest matching location for when your clock read that time.
## Docker for local development (experimental)
This repository comes with a bunch of shell scripts to get a local version of Compass running for development purposes.
`./docker/start.sh` starts an apache webserver, a mysql database and a redis image
`./docker/build.sh` builds the containers without starting them
`./docker/down.sh` shuts down the containers
You will still have to manually install Compass within these containers. When creating the `.env` file, the values are as follows:
```
BASE_URL=http://localhost/
DB_CONNECTION=mysql
DB_HOST=compass_db_1
DB_PORT=3306
DB_DATABASE=compass
DB_USERNAME=user
DB_PASSWORD=user
QUEUE_DRIVER=redis
CACHE_DRIVER=redis
REDIS_HOST=compass_redis_1
```
The command line commands are a bit tricky, too:
`docker exec -ti "compass_webserver_1" sh -c "cd compass && composer install"`
runs the composer install, the `artisan` commands need to be run this way as well. For example the `key:generate` command:
`docker exec -ti "compass_webserver_1" sh -c "cd compass && php artisan key:generate"`
and the `migrate` command:
`docker exec -ti "compass_webserver_1" sh -c "cd compass && php artisan migrate"`
## Credits ## Credits

+ 0
- 0
data/.gitkeep View File


+ 1
- 0
docker-compose.yml View File

@ -8,6 +8,7 @@ services:
- db - db
volumes: volumes:
- .:/var/www/html:cached - .:/var/www/html:cached
- ./data:/var/compass:cached
ports: ports:
- ${portWebserver}:80 - ${portWebserver}:80
db: db:

Loading…
Cancel
Save