Add basic HTTP API

This commit is contained in:
Ske
2018-08-02 00:36:50 +02:00
parent e831ef5921
commit 944f0093a9
13 changed files with 238 additions and 51 deletions

View File

@@ -1,9 +1,10 @@
version: '3'
services:
bot:
build:
context: src/
dockerfile: bot.Dockerfile
build: src/
entrypoint:
- python
- bot_main.py
depends_on:
- db
- influx
@@ -11,6 +12,16 @@ services:
- CLIENT_ID
- TOKEN
restart: always
api:
build: src/
entrypoint:
- python
- api_main.py
depends_on:
- db
restart: always
ports:
- "2939:8080"
db:
image: postgres:alpine
volumes: