Finalize example config
This commit is contained in:
parent
3c6be7938d
commit
72f98ebd7f
|
@ -5,8 +5,6 @@
|
|||
[](https://hub.docker.com/r/kcalapp/kcal)
|
||||
[](https://hub.docker.com/r/kcalapp/kcal/tags?page=1&ordering=last_updated)
|
||||
|
||||
# :construction: **WORK IN PROGRESS** :construction:
|
||||
|
||||
This is a template repository for running [kcal](https://github.com/kcal-app/kcal)
|
||||
with Docker Compose. Visit the main [kcal](https://github.com/kcal-app/kcal) repository
|
||||
for more information about the application.
|
||||
|
@ -43,4 +41,9 @@ desired).
|
|||
|
||||
## 6. Create initial user.
|
||||
|
||||
docker-compose exec app php artisan user:add --admin
|
||||
docker-compose exec app php artisan user:add --admin
|
||||
|
||||
## 7. Log in!
|
||||
|
||||
Navigate to [http://127.0.0.1/](http://127.0.0.1/) (or the `APP_URL`) and log in
|
||||
with the user created in the previous step.
|
|
@ -8,7 +8,7 @@ services:
|
|||
working_dir: /app
|
||||
env_file: .env
|
||||
volumes:
|
||||
- 'app:/app'
|
||||
- 'app-public:/app/public/'
|
||||
- './etc/php/php.ini:/usr/local/etc/php/conf.d/local.ini'
|
||||
networks:
|
||||
- kcal
|
||||
|
@ -24,7 +24,7 @@ services:
|
|||
- '${APP_PORT:-80}:80'
|
||||
- '${APP_PORT_SSL:-443}:443'
|
||||
volumes:
|
||||
- 'app:/app'
|
||||
- 'app-public:/app/public/'
|
||||
- './etc/nginx/conf.d/:/etc/nginx/conf.d/'
|
||||
networks:
|
||||
- kcal
|
||||
|
@ -82,7 +82,8 @@ networks:
|
|||
kcal:
|
||||
driver: bridge
|
||||
volumes:
|
||||
app: {}
|
||||
app-public:
|
||||
driver: local
|
||||
db-data:
|
||||
driver: local
|
||||
elasticsearch-data:
|
||||
|
|
|
@ -6,6 +6,9 @@ server {
|
|||
index index.php;
|
||||
charset utf-8;
|
||||
|
||||
error_log /var/log/nginx/error.log;
|
||||
access_log /var/log/nginx/access.log;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php?$query_string;
|
||||
gzip_static on;
|
||||
|
@ -27,4 +30,4 @@ server {
|
|||
location ~ /\.(?!well-known).* {
|
||||
deny all;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue