-
Notifications
You must be signed in to change notification settings - Fork 13
/
docker-compose.yml
94 lines (88 loc) · 2.08 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
version: '3'
services:
nginx:
build: web/nginx
image: nginx-simple
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
ports:
- "80:80"
- "443:443"
volumes:
- web_content:/var/www/
- ./web/certbot/conf:/etc/letsencrypt/
- ./web/certbot/www:/var/www/certbot
- ./logs/nginx:/var/log/nginx
depends_on:
- opm_hub
- site
- certbot
site:
build: web/site
image: site_osweb
ports:
- "5000"
environment:
- OS_CONTENT_DIRECTORY=/app/content
- OS_DOWNLOAD_DIRECTORY
volumes:
- web_content:/var/www/
depends_on:
- opm_hub
opm_hub:
image: evilbeaver/os-hub:10
ports:
- "5000"
environment:
- OSHUB_BINARY_ROOT=/var/www/hub.oscript.io
- GITHUB_AUTH_TOKEN
- GITHUB_SUPER_TOKEN
- OSWEB_Database__DBType
- OSWEB_Database__ConnectionString
- OSHUB_DEFAULT_USER
- OSHUB_DEFAULT_PASSWORD
- OSHUB_TG_NOTIFICATION
- TELEGRAM_TOKEN
- TELEGRAM_GROUP_ID
volumes:
- web_content:/var/www/
restart: always
depends_on:
- opm_hub_db
jenkins:
build: jenkins
image: osjenkins
ports:
- "8080"
- "50000:50000"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- jenkins_home:/var/jenkins_home
- web_content:/var/www
depends_on:
- tg_bot
opm_hub_db:
image: postgres:12
ports:
- 5432:5432
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
- POSTGRES_USER
- POSTGRES_PASSWORD
certbot:
image: certbot/certbot
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
volumes:
- ./web/certbot/conf:/etc/letsencrypt
- ./web/certbot/www:/var/www/certbot
- ./logs/certbot:/var/log/letsencrypt
tg_bot:
image: evilbeaver/os-tg-bot:latest
ports:
- "5000"
environment:
- TELEGRAM_TOKEN
volumes:
web_content:
jenkins_home:
postgres_data: