Skip to content

Commit

Permalink
Bumped version and added persistent MySQL volume (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
thekevinm committed Dec 10, 2020
1 parent 4ed609b commit 84b7ce0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Expand Up @@ -4,7 +4,7 @@ FROM dreamfactorysoftware/df-base-img:php7.2
COPY dreamfactory.conf /etc/nginx/sites-available/dreamfactory.conf

# Get DreamFactory
RUN git clone --branch 4.3.1 https://github.com/dreamfactorysoftware/dreamfactory.git /opt/dreamfactory
RUN git clone --branch 4.3.3 https://github.com/dreamfactorysoftware/dreamfactory.git /opt/dreamfactory

WORKDIR /opt/dreamfactory

Expand Down
5 changes: 3 additions & 2 deletions README.md
Expand Up @@ -10,8 +10,9 @@ Docker container for DreamFactory 4.x using Ubuntu 16.04, PHP 7.2 and NGINX.
### Get Docker Compose
- See [https://docs.docker.com/compose/install](https://docs.docker.com/compose/install)

### Environment options
- See [this table](#environment-options-1)
### Persist MySQL Data
Be sure to either set the APP_KEY value in the docker-compose file or you will receive "The MAC is invalid" errors within your instance.


## Configuration method docker-compose
The easiest way to configure the DreamFactory application is to use docker-compose.
Expand Down
7 changes: 5 additions & 2 deletions docker-compose.yml
Expand Up @@ -7,15 +7,16 @@ services:
MYSQL_USER: df_admin
MYSQL_PASSWORD: df_admin
image: mysql:5.7

volumes:
- df-mysql:/var/lib/mysql
redis:
image: redis

web:
environment:
SERVERNAME: dreamfactory.local
# HTTPS_HEADER: "on"

# APP_KEY: VALUE
DB_DRIVER: mysql
DB_HOST: mysql
DB_USERNAME: df_admin
Expand Down Expand Up @@ -64,3 +65,5 @@ services:
volumes:
df-storage:
driver: local
df-mysql:
driver: local

0 comments on commit 84b7ce0

Please sign in to comment.