Last active
July 17, 2024 10:51
-
-
Save xfathurrahman/a23f06b6bf5a1aeb8f5d3e475093d902 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app = "mysql8" | |
primary_region = "sin" | |
[build] | |
image = "mysql:8" | |
[env] | |
MYSQL_DATABASE = "db_test" | |
MYSQL_USER = "non_root_user" | |
# Set secrets: | |
# MYSQL_PASSWORD - password set for user $MYSQL_USER | |
# MYSQL_ROOT_PASSWORD - password set for user "root" | |
# run "fly secrets set MYSQL_PASSWORD=password MYSQL_ROOT_PASSWORD=password" to set password | |
[[mounts]] | |
destination = "/data" | |
source = "mysqldata" | |
[processes] | |
app = "--datadir /data/mysql --mysql-native-password=ON" | |
[[services]] | |
internal_port = 3306 | |
processes = [ "app" ] | |
protocol = "tcp" | |
[[services.ports]] | |
port = 13306 | |
[[vm]] | |
cpu_kind = "shared" | |
cpus = 1 | |
memory = "2gb" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment