Hi, I’m trying to deploy an app using the mysql image but I always get this error message:
$ flyctl launch
#...
#...
Image: registry.fly.io/test-db:deployment-1656895318
Image size: 462 MB
==> Creating release
Release v11 created
You can detach the terminal anytime without stopping the deployment
Monitoring Deployment
v9 failed - Failed due to unhealthy allocations - no stable job version to auto revert to
v9 failed - Failed due to unhealthy allocations - no stable job version to auto revert to
***v9 failed - Failed due to unhealthy allocations - no stable job version to auto revert to and deploying as v10
Troubleshooting guide at https://fly.io/docs/getting-started/troubleshooting/
Error abort
The intention is to connect a Ruby on Rails app with this service, so I would like it to be a private connection.
what am i doing wrong?
My Dockerfile
FROM mysql:5.7.38
RUN chown -R mysql:root /var/lib/mysql/
ENV MYSQL_ALLOW_EMPTY_PASSWORD true
ARG MYSQL_DATABASE=revistajus_production
ARG MYSQL_USER=root
ARG MYSQL_PASSWORD=root
ARG MYSQL_ROOT_PASSWORD=root
ENV MYSQL_DATABASE=${MYSQL_DATABASE}
ENV MYSQL_USER=${MYSQL_USER}
ENV MYSQL_PASSWORD=${MYSQL_PASSWORD}
ENV MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
EXPOSE 3306
CMD ["mysqld"]
Configs
# fly.toml file generated for test-db on 2022-07-03T20:31:37-03:00
app = "test-db"
kill_signal = "SIGINT"
kill_timeout = 5
processes = []
[env]
port = 3306
[experimental]
allowed_public_ports = []
auto_rollback = true
[mounts]
source="test_data"
destination="/data"
[[services]]
http_checks = []
internal_port = 3306
processes = ["app"]
protocol = "tcp"
script_checks = []
[services.concurrency]
hard_limit = 25
soft_limit = 20
type = "connections"
[[services.ports]]
force_https = true
handlers = ["http"]
port = 80
[[services.ports]]
handlers = ["tls", "http"]
port = 443
[[services.tcp_checks]]
grace_period = "1s"
interval = "15s"
restart_limit = 0
timeout = "2s"