Skip to content

Commit

Permalink
Add DB version to .env file
Browse files Browse the repository at this point in the history
  • Loading branch information
evertramos committed Feb 19, 2020
1 parent 0c18328 commit 4ee97c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ NETWORK=webproxy
# Database Container configuration
# We recommend MySQL or MariaDB - please update docker-compose file if needed.
#
DB_VERSION=latest

CONTAINER_DB_NAME=db

# Path to store your database
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: '3'
services:
db:
container_name: ${CONTAINER_DB_NAME}
image: mariadb:latest
image: mariadb:${DB_VERSION:-latest}
restart: unless-stopped
volumes:
- ${DB_PATH}:/var/lib/mysql
Expand Down

0 comments on commit 4ee97c9

Please sign in to comment.