Skip to content

Commit 12ca68a

Browse files
committed
Make mysql's data mountable externally
1 parent 2eda1bc commit 12ca68a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ RUN ln -fs /mnt/flamework/www /var/www/html
3737
# Allow mounting of source code from external to the container
3838
VOLUME ["/mnt/flamework"]
3939

40+
# Optional persistence of the mysql data
41+
VOLUME ["/var/lib/mysql"]
42+
4043
# Listen on the HTTP and HTTPS ports
4144
EXPOSE 80
4245
EXPOSE 443

0 commit comments

Comments
 (0)