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

Get Started With Docker

TheSnowfield edited this page Apr 20, 2021 · 15 revisions

Docker Compose

An 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.2.3",
          "ARCAPI_VERSION": 13,
          "ARCAPI_APPVERSION": "3.5.0c",
          "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 use persistent storage to protect your data otherwise, your data will lose when docker container exit

BOTARCAPI_CONFIG

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

Click here to view all available field

Clone this wiki locally