SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Thread Tools Display Modes
Old 18/05/2018, 01:19 PM   #1
Little Clucker
Join Date: Sep 2013
Location: Argentina
Posts: 4
Reputation: 0
Default Docker

Hi, im looking for guide to put my server (SAMP + MYSQL) in a Docker Container.
xangelx12 is offline   Reply With Quote
Old 18/05/2018, 02:07 PM   #2
[HLF]Southclaw's Avatar
Join Date: Apr 2009
Location: England
Posts: 4,836
Reputation: 1405
Default Re: Docker

You don't want to put SA:MP and MySQL into the same container. There's already a MySQL image here: and the readme contains all the necessary information for getting that set up.

As for SA:MP, I built sampctl to simplify the deployment process inside Docker, there's an image here: and more details on configuration here. You'll want to build your server `FROM sampctl` and add any configuration there then when running it, mount the scriptfiles directory so your changes persist between restarts.

Finally, linking the two containers so they can talk to each other will require a bridge network that both containers are connected to, then you can just point the SA:MP server MySQL API to the address "mysql:3306" - yes, "mysql" is a valid domain in the Docker networking setup, it turns container names into domain names for easy access.

[HLF]Southclaw is offline   Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Tutorial] Yet Another Plugin Boilerplate - 2018 edition! (CMake/Docker/y_testing/sampctl) [HLF]Southclaw Tutorials 5 21/04/2018 09:40 AM

All times are GMT. The time now is 08:05 AM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.