1
0
Fork 0
mirror of https://github.com/fastogt/fastocloud_admin.git synced 2025-03-09 23:38:52 +00:00

Docker image patch

This commit is contained in:
topilski 2019-06-07 03:39:48 -04:00
parent c224f70f85
commit d57f1fbf2d
6 changed files with 24 additions and 16 deletions

View file

@ -3,6 +3,7 @@ FROM python:3
LABEL maintainer="Alexandr Topilski <support@fastogt.com>"
COPY . /app
COPY docker/db_config.py /app/app/config/
WORKDIR /app
RUN pip install -r requirements.txt

View file

@ -74,6 +74,7 @@ app, bootstrap, babel, db, mail, login_manager, servers_manager = init_project(
'static',
'config/public_config.py',
'config/config.py',
'config/db_config.py',
'config/mail_config.py'
)

View file

@ -1,11 +1,3 @@
MONGO_DBNAME = 'iptv'
MONGO_URI = 'mongodb://localhost:27017/' + MONGO_DBNAME
MONGODB_SETTINGS = {
'db': MONGO_DBNAME,
'host': MONGO_URI
}
SECRET_KEY = '1d4bb560a7644fa48852a92ce52d6e08'
SERVER_NAME_FOR_POST = '0.0.0.0:8080'
PREFERRED_URL_SCHEME = 'http'

7
app/config/db_config.py Normal file
View file

@ -0,0 +1,7 @@
MONGO_DBNAME = 'iptv'
MONGO_URI = 'mongodb://localhost:27017/' + MONGO_DBNAME
MONGODB_SETTINGS = {
'db': MONGO_DBNAME,
'host': MONGO_URI
}

View file

@ -2,16 +2,9 @@ version: '2'
services:
mongodb:
image: mongo:latest
container_name: "mongodb"
container_name: mongodb
ports:
- 27017:27017
iptv:
image: fastogt/iptv:latest
container_name: iptv
ports:
- 6317:6317
- 8000:8000
- 7000:7000
iptv_admin:
build:
context: ./
@ -23,6 +16,13 @@ services:
command: ./server.py
ports:
- 8080:8080
iptv:
image: fastogt/iptv:latest
container_name: iptv
ports:
- 6317:6317
- 8000:8000
- 7000:7000
nginx:
image: nginx
container_name: nginx

7
docker/db_config.py Normal file
View file

@ -0,0 +1,7 @@
MONGO_DBNAME = 'iptv'
MONGO_URI = 'mongodb://mongodb:27017/' + MONGO_DBNAME
MONGODB_SETTINGS = {
'db': MONGO_DBNAME,
'host': MONGO_URI
}