Skip to content
This repository was archived by the owner on Jul 5, 2021. It is now read-only.

Get Started With Docker

TheSnowfield edited this page Jun 24, 2020 · 15 revisions

Out Of The Box

A easy and fast way to construct a docker container and deploy your service quickly

$ docker-compose up -d

Configs

You can customize configs in the docker-compose.yml

This is a default file in the repo

# Docker compose file for BotArcAPI

version: '3'

services:
  botarcapi:
    build: .
    restart: always
    container_name: 'botarcapi'
    environment:

      # modify this will
      # overriding default configs
      BOTARCAPI_CONFIG: |
        {
          "SERVER_PORT": 80
          "BOTARCAPI_VERSTR": "v0.0.5",
          "ARCAPI_VERSION": 12,
          "ARCAPI_APPVERSION": "3.0.2c",
          "ARCAPI_USERAGENT": "Grievous Lady (Linux; U; Android 2.3.3; BotArcAPI)",
          "LOG_LEVEL": 0
        }

    # expose service port
    # to localhost at 8000
    ports:
      - '8000:80'

You should using persistent storage to protect your data otherwise your data will loss when docker container exit

BOTARCAPI_CONFIG

this is an environment variable which storage a json used to passing your custom config to framework

Click here to view all available field

Clone this wiki locally