docker-compose: Set mariadb version and added local dev env to readme

This commit is contained in:
Igor Scheller 2019-10-11 22:56:38 +02:00
parent 503c479e86
commit 91eae7d067
2 changed files with 16 additions and 1 deletions

View File

@ -127,6 +127,20 @@ Import database
docker exec -it engelsystem bin/migrate docker exec -it engelsystem bin/migrate
``` ```
#### Local development
To use the working directory in the container the docker-compose file has to be changed:
```yaml
[...]
nginx:
volumes:
- ../public/assets:/var/www/public/assets
[...]
engelsystem:
volumes:
- ../:/var/www
[...]
```
#### Scripts #### Scripts
##### bin/deploy.sh ##### bin/deploy.sh
The `bin/deploy.sh` script can be used to deploy the engelsystem. It uses rsync to deploy the application to a server over ssh. The `bin/deploy.sh` script can be used to deploy the engelsystem. It uses rsync to deploy the application to a server over ssh.

View File

@ -27,12 +27,13 @@ services:
depends_on: depends_on:
- database - database
database: database:
image: mariadb:latest image: mariadb:10.2
environment: environment:
MYSQL_DATABASE: engelsystem MYSQL_DATABASE: engelsystem
MYSQL_USER: engelsystem MYSQL_USER: engelsystem
MYSQL_PASSWORD: engelsystem MYSQL_PASSWORD: engelsystem
MYSQL_RANDOM_ROOT_PASSWORD: 1 MYSQL_RANDOM_ROOT_PASSWORD: 1
MYSQL_INITDB_SKIP_TZINFO: "yes"
volumes: volumes:
- db:/var/lib/mysql - db:/var/lib/mysql
networks: networks: