updated dockerfiles

this is a mess, i have to come up with something better
This commit is contained in:
wukko 2023-05-19 19:13:48 +06:00
parent 5636a27ff0
commit 19bc17b1dd
4 changed files with 44 additions and 1 deletions

View file

@ -0,0 +1,39 @@
version: '3.5'
services:
cobalt-api:
build:
context: .
dockerfile: ./docker/dockerfile_api
restart: unless-stopped
container_name: cobalt-api
ports:
- 9000:9000/tcp
environment:
- apiPort=9000
- apiURL='https://co.wuk.sh/'
- cors=1
cobalt-web:
build:
context: .
dockerfile: ./docker/dockerfile_web
restart: unless-stopped
container_name: cobalt-web
ports:
- 9000:9000/tcp
environment:
- apiPort=9000
- apiURL='https://co.wuk.sh/'
- cors=1
cobalt-full:
build:
context: .
dockerfile: ./dockerfile
restart: unless-stopped
container_name: cobalt-full
ports:
- 9000:9000/tcp
environment:
- apiPort=9000
- apiURL='https://co.wuk.sh/'
- cors=1

View file

@ -19,10 +19,14 @@ const exceptions = { // used for mobile devices
"vQuality": "720" "vQuality": "720"
}; };
const apiURL = ''; let apiURL = '';
let store = {}; let store = {};
function changeAPI(url) {
apiURL = url;
return true
}
function eid(id) { function eid(id) {
return document.getElementById(id) return document.getElementById(id)
} }