This repository has been archived by the owner on Apr 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
javacord-docker-stack.yml
147 lines (110 loc) · 2.61 KB
/
javacord-docker-stack.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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
version: "3.2"
services:
shields:
image: shields
deploy:
replicas: 1
restart_policy:
condition: any
env_file: /home/teamcity/shields.env
environment:
# Base URL for redirects etc.
BASE_URL: "http://localhost:8080"
# Where your homepage is, if different
FRONTEND_REDIRECT_URL: "https://javacord.org/"
# Server settings
PORT: 80
BIND_ADDRESS: "::"
# GitHub settings
GITHUB_URL: "https://api.github.com"
networks:
- shields
ports:
- "8080:80"
javadoc_proxy:
image: javadoc_proxy
deploy:
replicas: 1
restart_policy:
condition: any
networks:
- javadoc_proxy
ports:
- "8081:80"
gradle-build-cache:
image: gradle/build-cache-node
deploy:
replicas: 1
restart_policy:
condition: any
volumes:
- gradle-build-cache-data:/data
networks:
- gradle-build-cache
# if the web interface of the cache node is needed
#ports:
# - "5071:5071"
mysql:
image: mysql:5.7
command: ["--character-set-server=utf8mb4", "--collation-server=utf8mb4_bin", "--binlog-format=MIXED"]
deploy:
replicas: 1
restart_policy:
condition: any
# Uncomment environment and secrets for first start to setup database, then uncomment again
#
#environment:
# MYSQL_ROOT_PASSWORD_FILE: "/run/secrets/mysql_root_password"
# MYSQL_DATABASE: "teamcity"
# MYSQL_USER: "teamcity"
# MYSQL_PASSWORD_FILE: "/run/secrets/mysql_teamcity_password"
#
#secrets:
# - source: mysql_root_password
# uid: '999'
# gid: '999'
# mode: 0400
#
# - source: mysql_teamcity_password
# uid: '999'
# gid: '999'
# mode: 0400
volumes:
- mysql-data:/var/lib/mysql
networks:
- mysql
# if the MySQL port is needed from the host
#ports:
# - "3306:3306"
teamcity:
image: jetbrains/teamcity-server:2018.1.4
deploy:
replicas: 1
restart_policy:
condition: any
volumes:
- teamcity-data:/data/teamcity_server/datadir
- teamcity-logs:/opt/teamcity/logs
- /run/docker.sock:/run/docker.sock
networks:
- mysql
ports:
- "8111:8111"
#secrets:
# mysql_root_password:
# external: true
#
# mysql_teamcity_password:
# external: true
volumes:
gradle-build-cache-data:
mysql-data:
teamcity-data:
teamcity-logs:
networks:
shields:
javadoc_proxy:
gradle-build-cache:
# allow the building containers to attach to the network
attachable: true
mysql: