Skip to content

Commit

Permalink
Update mysql-traccar.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
dev1983 authored May 1, 2020
1 parent 5846fb9 commit 0ffd837
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mysql-traccar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ spec:
secretKeyRef:
name: mysql-pass
key: password
command: ["/bin/bash"]
args: ["-c", "while true; do echo 'CREATE DATABASE traccardb;' > createdb.sql; mysql --user=root --password=$MYSQL_ROOT_PASSWORD < createdb.sql; /etc/init.d/mysql start; done"]
ports:
- containerPort: 3306
name: mysql
Expand Down

0 comments on commit 0ffd837

Please sign in to comment.