AppScale with Docker

31 views
Skip to first unread message

Phat Le

unread,
Sep 17, 2018, 11:20:46 AM9/17/18
to AppScale Community
Hi everyone, 
i'm using docker to run AppScale with fast-start script, so how can i add another database node (like mysql-server on docker container) to the AppScalefile ? 
i have 2 docker containers: first is running AppScale, second is running mysql-server.

Chris Donati

unread,
Sep 17, 2018, 12:47:52 PM9/17/18
to appscale_...@googlegroups.com
Just to clarify, AppScale uses Cassandra as the database backend for the datastore API. In the AppScalefile, that is what the "database" role indicates (which machines should run Cassandra for the datastore API).

AppScale does not currently have support for managing a MySQL server. You can still connect to one with your AppScale app, but you'll need to start and manage the MySQL server yourself. It sounds like you've already done this.

Since AppScale does not manage the MySQL server, you do not need to include it in the ips_layout of your AppScalefile in order to make it accessible to your app. Depending on how your network is set up, you may need to expose the ports of your MySQL service. I don't have much experience with Docker, but https://docs.docker.com/v17.09/engine/userguide/networking/ might be helpful. Is the port that MySQL is running on accessible to the container that AppScale is running on?

--
You received this message because you are subscribed to the Google Groups "AppScale Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to appscale_community+unsub...@googlegroups.com.
To post to this group, send email to appscale_community@googlegroups.com.
Visit this group at https://groups.google.com/group/appscale_community.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages