Skip to content

Deploy server and database using docker #3

Description

@scriptingislife

@congto @MinhKMA

I made Dockerfile-server and Dockerfile-db. I'd recommend updating your repos.

The server uses the python container built on top of Alpine. The database uses the MariaDB container.

After cloning this repo I ran these commands to get it up and running. Next I want to link them so the server can communicate with the database.

docker build -f Dockerfile-server .
docker run -d --name mapperserver -p 5000:5000 <build server image>

docker build -f Dockerfile-db .
docker run -d --name mapperdb -p 3306:3306 -e MYSQL_ROOT_PASSWORD=secret <built db image>

Let me know if this works for you. The sensor setup is so simple I'm not sure it needs a container. Also it needs access to the auth.log file.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions