remove docker-compose.yml.dist

This commit is contained in:
deflax 2023-12-31 14:32:41 +00:00
parent 44cb8eeb2d
commit d1986885f6
6 changed files with 16 additions and 17 deletions

3
.gitignore vendored
View file

@ -163,7 +163,6 @@ cython_debug/
# television # television
data/ data/
logs/ logs/
docker-compose.yml variables.env
certbot.env
haproxy.cfg haproxy.cfg
*.json *.json

View file

@ -1,2 +0,0 @@
BASE_URL=example.com
EMAIL=info@example.com

View file

@ -41,10 +41,8 @@ services:
restreamer: restreamer:
image: datarhei/restreamer:2.7.0 image: datarhei/restreamer:2.7.0
environment: env_file:
- CORE_LOG_LEVEL=warn - "variables.env"
- CORE_API_AUTH_USERNAME=admin
- CORE_API_AUTH_PASSWORD=pass
ports: ports:
- "6000:6000/udp" - "6000:6000/udp"
volumes: volumes:
@ -61,11 +59,8 @@ services:
- "restreamer" - "restreamer"
build: ./src/scheduler build: ./src/scheduler
image: stream-scheduler:latest image: stream-scheduler:latest
environment: env_file:
- LOG_LEVEL=info - "variables.env"
- CORE_API_HOSTNAME=stream.example.com
- CORE_API_USERNAME=admin
- CORE_API_PASSWORD=pass
restart: unless-stopped restart: unless-stopped
networks: networks:
- net - net

View file

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
source certbot.env source variables.env
CB=`docker ps | grep certbot | cut -d ' ' -f 1` CB=`docker ps | grep certbot | cut -d ' ' -f 1`

View file

@ -15,8 +15,8 @@ database = {}
# Environment # Environment
api_hostname = os.environ.get('CORE_API_HOSTNAME') api_hostname = os.environ.get('CORE_API_HOSTNAME')
api_port = os.environ.get('CORE_API_PORT') api_port = os.environ.get('CORE_API_PORT')
api_username = os.environ.get('CORE_API_USERNAME') api_username = os.environ.get('CORE_API_AUTH_USERNAME')
api_password=os.environ.get('CORE_API_PASSWORD') api_password=os.environ.get('CORE_API_AUTH_PASSWORD')
iway = { iway = {
"head": "https://stream.deflax.net/memfs/ac2172fa-d8d5-4487-8bc6-5347dcf7c0dc.m3u8" "head": "https://stream.deflax.net/memfs/ac2172fa-d8d5-4487-8bc6-5347dcf7c0dc.m3u8"
@ -110,7 +110,7 @@ manager.register_task(name="read_database", job=analyze_db).period(35).start()
@app.route('/', methods=['GET']) @app.route('/', methods=['GET'])
def root_query(): def root_query():
playhead = obs playhead = iway
return jsonify(playhead) return jsonify(playhead)
def create_app(): def create_app():

7
variables.env.dist Normal file
View file

@ -0,0 +1,7 @@
BASE_URL=example.com
EMAIL=info@example.com
CORE_LOG_LEVEL=warn
CORE_API_HOSTNAME=stream.example.com
CORE_API_AUTH_USERNAME=admin
CORE_API_AUTH_PASSWORD=changeme
SCHEDULER_LOG_LEVEL=info