-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
141 lines (140 loc) · 4.3 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
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
version: "3.9"
services:
murdock:
user: ${MURDOCK_USER_UID}:${MURDOCK_DOCKER_GID}
build:
context: .
args:
UID: ${MURDOCK_USER_UID}
GID: ${MURDOCK_USER_GID}
image: murdockng/murdock:latest
container_name: murdock-api-${COMPOSE_PROJECT_NAME}
environment:
- MURDOCK_PROJECT=${COMPOSE_PROJECT_NAME}
- MURDOCK_LOG_LEVEL
- MURDOCK_BASE_URL
- MURDOCK_NUM_WORKERS
- MURDOCK_CUSTOM_ENV
- MURDOCK_RUN_IN_DOCKER=1
- MURDOCK_USER_UID
- MURDOCK_USER_GID
- MURDOCK_DOCKER_DEFAULT_TASK_IMAGE
- MURDOCK_DOCKER_VOLUMES
- MURDOCK_DOCKER_CPU_LIMIT
- MURDOCK_DOCKER_MEM_LIMIT
- MURDOCK_HOST_WORK_DIR=${MURDOCK_WORK_DIR}
- MURDOCK_DB_TYPE
- MURDOCK_DB_HOST=mongodb-${COMPOSE_PROJECT_NAME}
- MURDOCK_DB_PORT=0
- MURDOCK_DB_NAME
- MURDOCK_DB_AUTH_USER
- MURDOCK_DB_AUTH_PASSWORD
- MURDOCK_GITHUB_APP_CLIENT_ID
- MURDOCK_GITHUB_APP_CLIENT_SECRET
- GITHUB_REPO
- GITHUB_WEBHOOK_SECRET
- GITHUB_API_TOKEN
- MURCOCK_CANCEL_ON_UPDATE
- MURDOCK_ENABLE_COMMIT_STATUS
- MURDOCK_COMMIT_STATUS_CONTEXT
- MURDOCK_ENABLE_PR_COMMENT
- MURDOCK_NOTIFIER_ENABLE
- MURDOCK_NOTIFIER_PR_NOTIFIERS
- MURDOCK_NOTIFIER_BRANCH_NOTIFIERS
- MURDOCK_NOTIFIER_TAG_NOTIFIERS
- MURDOCK_NOTIFIER_COMMIT_NOTIFIERS
- MURDOCK_NOTIFIER_MAIL_RECIPIENTS
- MURDOCK_NOTIFIER_MAIL_SERVER
- MURDOCK_NOTIFIER_MAIL_PORT
- MURDOCK_NOTIFIER_MAIL_USE_TLS
- MURDOCK_NOTIFIER_MAIL_USERNAME
- MURDOCK_NOTIFIER_MAIL_PASSWORD
- MURDOCK_NOTIFIER_MATRIX_ROOM
- MURDOCK_NOTIFIER_MATRIX_TOKEN
- UVICORN_LOG_LEVEL=info
- CI_READY_LABEL
- CI_FASTTRACK_LABELS
volumes:
- /var/run/docker.sock:/var/run/docker.sock:rw
- /usr/bin/docker:/usr/bin/docker
- /run/systemd/journal/socket:/run/systemd/journal/socket
- ./murdock:/var/lib/murdock/murdock
- ./murdock.py:/var/lib/murdock/murdock.py
- ${MURDOCK_WORK_DIR}:/var/lib/murdock-data
- ${MURDOCK_SCRIPTS_DIR}:/var/lib/murdock-scripts
logging:
driver: syslog
options:
tag: murdock-api-${COMPOSE_PROJECT_NAME}
networks: [$MURDOCK_DOCKER_NETWORK]
restart: always
frontend-build:
image: node:16.9.1
volumes:
- ${MURDOCK_HTML_DIR}:/frontend
environment:
- REACT_APP_MURDOCK_HTTP_BASE_URL=${MURDOCK_BASE_URL}
- REACT_APP_MURDOCK_WS_URL=${MURDOCK_WS_URL}
- REACT_APP_NIGHTLIES_ROOT_URL=${MURDOCK_BASE_URL}
- REACT_APP_MURDOCK_GITHUP_APP_CLIENT_ID=${MURDOCK_GITHUB_APP_CLIENT_ID}
- REACT_APP_GITHUB_REPO=${GITHUB_REPO}
command: >
/bin/sh -c "
cd /frontend &&
npm install &&
npm run build
"
profiles: ["setup"]
frontend:
user: ${MURDOCK_USER_UID}:${MURDOCK_USER_GID}
build:
context: frontend/.
args:
UID: ${MURDOCK_USER_UID}
GID: ${MURDOCK_USER_GID}
image: murdockng/murdock-frontend
container_name: murdock-frontend-${COMPOSE_PROJECT_NAME}
volumes:
- ./frontend:/var/lib/murdock/frontend
- ${MURDOCK_HTML_DIR}/build:/var/lib/murdock/frontend/build
logging:
driver: syslog
options:
tag: murdock-frontend-${COMPOSE_PROJECT_NAME}
networks: [$MURDOCK_DOCKER_NETWORK]
restart: always
mongo:
image: mongo:4.2.16
container_name: mongodb-${COMPOSE_PROJECT_NAME}
volumes:
- ${MONGODB_BD_DATA_DIR}:/data/db
logging:
driver: syslog
options:
tag: murdock-mongo-${COMPOSE_PROJECT_NAME}
networks: [$MURDOCK_DOCKER_NETWORK]
restart: always
mongo-dev:
image: mongo:4.2.16
container_name: mongodb-dev
ports:
- 27017:27017
volumes:
- ${MONGODB_BD_DATA_DIR}:/data/db
profiles: ["dev"]
proxy:
image: traefik:v2.5
container_name: murdock-proxy-${COMPOSE_PROJECT_NAME}
ports:
- ${MURDOCK_PORT}:8081
- 9982:9982
volumes:
- ${PWD}/traefik:/etc/traefik
environment:
- MURDOCK_PROJECT=${COMPOSE_PROJECT_NAME}
logging:
driver: syslog
options:
tag: murdock-proxy-${COMPOSE_PROJECT_NAME}
networks: [$MURDOCK_DOCKER_NETWORK]
restart: always