-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
45 lines (43 loc) · 1.06 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
version: '2.1'
volumes:
gitb-repo:
gitb-dbdata:
services:
gitb-redis:
image: redis:7.2.5
restart: unless-stopped
gitb-mysql:
build:
context: ./etc/docker/gitb-mysql
restart: unless-stopped
volumes:
- gitb-dbdata:/var/lib/mysql
healthcheck:
test: "/usr/bin/mysql --user=root --password=$$MYSQL_ROOT_PASSWORD --execute \"SHOW DATABASES;\""
interval: 3s
retries: 10
gitb-srv:
build:
context: ./
dockerfile: etc/docker/build/Dockerfile-srv
restart: unless-stopped
environment:
- CALLBACK_ROOT_URL=http://localhost:8080/itbsrv
ports:
- "8080:8080"
gitb-ui:
build:
context: ./
dockerfile: etc/docker/build/Dockerfile-ui
restart: unless-stopped
ports:
- "9000:9000"
volumes:
- gitb-repo:/gitb-repository
depends_on:
gitb-redis:
condition: service_started
gitb-mysql:
condition: service_healthy
gitb-srv:
condition: service_started