-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
40 lines (38 loc) · 1.13 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
services:
web_app:
image: luciferscircle/webos-token-refresh:latest
container_name: web_app
networks:
- network_tunnel
- webOS
environment:
- ENCRYPTION_KEY= # Generate your own key
- APP_SCRIPT=app:app # Specify the script to run, change to =app.py for test server w/logs
volumes:
- type: bind
source: /path/to/db/dir # Add the directory you want to store keys.db inside
target: /usr/src/app/db
ports:
- "5000:5000"
restart: always
task_runner:
image: luciferscircle/webos-token-refresh:latest
container_name: task_runner
networks:
- webOS
environment:
- ENCRYPTION_KEY= # Repeat web_app key
- SCRIPT_INTERVAL=86400 # How often tokens will get refreshed. Default 24 hours
- APP_SCRIPT=task_runner.py # Start task runner, this can be on a seperate server. Dont change this one
volumes:
- type: bind
source: /path/to/db/dir # Repeat web_app source path
target: /usr/src/app/db
restart: always
depends_on:
- web_app
networks:
network_tunnel:
external: true
webOS:
external: true