This repository has been archived by the owner on Jul 5, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
Get Started With Docker
TheSnowfield edited this page Apr 20, 2021
·
15 revisions
An easy and fast way to construct a docker container and deploy your service quickly
$ docker-compose up -d
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
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