Updated the Docker files

This commit is contained in:
Carvallegro 2017-12-31 05:29:02 +11:00
parent ec5070e45f
commit 21366add04
3 changed files with 28 additions and 3 deletions

View File

@ -30,14 +30,14 @@ Akaunting uses [Laravel](http://laravel.com), the best existing PHP framework, a
## Docker
It is possible to containerise Akounting using the [`docker-compose`](./docker-compose.yaml) file. Here are a few commands:
It is possible to containerise Akaunting using the [`docker-compose`](docker/docker-compose.build.yaml) file. Here are a few commands:
```
# Make sure you the dependencies are installed
composer install && composer dump-autoload
# Build the app
docker-compose build
docker-compose -f docker/docker-compose.build.yaml build
# Run the app
docker-compose up
@ -46,6 +46,9 @@ docker-compose up
docker exec -it CONTAINER_ID /bin/sh
```
## docker-compose examples
In the `docker/` folder you'll find some example file to run the image with several databases.
## Contributing
Fork the repository, make the code changes then submit a pull request.

View File

@ -2,6 +2,6 @@ version: '3'
services:
web:
image: akaunting
build: .
build: ../
ports:
- "80:80"

View File

@ -0,0 +1,22 @@
version: '3'
services:
mysql:
image: mysql
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: akaunting_root_password
MYSQL_DATABASE: akaunting_db
MYSQL_USER: akaunting_admin
MYSQL_PASSWORD: akaunting_password
web:
image: akaunting
## Uncomment if you wish to use this configuration as development environment.
# volumes:
# - ../:/var/www/html
ports:
- 8080:80
environment:
APP_DEBUG: "true"
links:
- mysql