-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
61 lines (61 loc) · 1.64 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
version: '3'
services:
main:
build:
context: .
restart: always
privileged: true
user: root
command: node index.js
ports:
- "${PORT}:${PORT}"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./_projects:/usr/src/projects
- projects:/usr/src/share
environment:
PORT: '${PORT}'
GITHUB_USER: '${GITHUB_USER}'
GITHUB_TOKEN: '${GITHUB_TOKEN}'
PROJECTS: '${PROJECTS}'
PROJECTS_ROOT_DIR: '/usr/src/projects'
LOCALTUNNEL_HOST: '${LOCALTUNNEL_HOST}'
LOCALTUNNEL_API_TOKEN: '${LOCALTUNNEL_API_TOKEN}'
LOCALTUNNEL_BASIC_AUTH: '${LOCALTUNNEL_BASIC_AUTH}'
NGROK_AUTH_TOKEN: '${NGROK_AUTH_TOKEN}'
healthcheck:
test: ["CMD", "node", "healthcheck.js"]
interval: "20s"
logging:
driver: 'json-file'
options:
max-file: '5'
max-size: '5m'
launcher:
build:
context: .
restart: always
privileged: true
user: root
command: node launcher/launcher.js
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- projects:/usr/src/share
environment:
PORT: '${PORT}'
GITHUB_USER: '${GITHUB_USER}'
GITHUB_TOKEN: '${GITHUB_TOKEN}'
PROJECTS: '${PROJECTS}'
PROJECTS_ROOT_DIR: '/usr/src/projects'
LOCALTUNNEL_HOST: '${LOCALTUNNEL_HOST}'
LOCALTUNNEL_API_TOKEN: '${LOCALTUNNEL_API_TOKEN}'
LOCALTUNNEL_BASIC_AUTH: '${LOCALTUNNEL_BASIC_AUTH}'
NGROK_AUTH_TOKEN: '${NGROK_AUTH_TOKEN}'
PI_DAB_DIR: '/usr/src/share/pi-dab'
logging:
driver: 'json-file'
options:
max-file: '5'
max-size: '2m'
volumes:
projects: