-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose-ubuntu.yml.sample
51 lines (50 loc) · 1.67 KB
/
docker-compose-ubuntu.yml.sample
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
version: '3'
services:
jianmu-mysql:
image: mysql:8
command: --init-connect='SET NAMES utf8' --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --max-connections=1200 --max-user-connections=1000
ports:
- "3306:3306"
restart: always
environment:
MYSQL_ROOT_PASSWORD: 123456
MYSQL_DATABASE: "jianmu"
TZ: "Asia/Shanghai"
ci-server:
image: jianmudev/jianmu-ci-server:v2.5.0
restart: always
environment:
SPRING_PROFILES_ACTIVE: dev
SPRING_DATASOURCE_URL: jdbc:mysql://jianmu-mysql:3306/jianmu?useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true
SPRING_DATASOURCE_USERNAME: root
SPRING_DATASOURCE_PASSWORD: 123456
JIANMU_WORKER_SECRET: worker-secret
JIANMU_API_ADMINPASSWD: 123456
# REGISTRY_AK:
# REGISTRY_SK:
volumes:
- /mnt/jianmu/ci:/ci
depends_on:
- jianmu-mysql
entrypoint: ["/wait-for-it.sh", "jianmu-mysql:3306", "-t", "0", "--", "java", "-Duser.timezone=Asia/Shanghai", "-cp", "/app/resources:/app/classes:/app/libs/*", "dev.jianmu.api.SpringbootApp"]
worker:
image: jianmudev/jianmu-worker-docker:v1.0.0
restart: always
environment:
JIANMU_SRV_ADDRESS: http://ci-server:8081
JIANMU_SRV_SECRET: worker-secret
JIANMU_WORKER_ID: worker1
# 可同时并发的容器数量,默认为2
JIANMU_WORKER_CAPACITY: 5
depends_on:
- jianmu-mysql
- ci-server
web:
image: jianmudev/jianmu-ci-ui:v2.5.0
ports:
- "80:80"
- "443:443"
restart: always
depends_on:
- jianmu-mysql
- ci-server