-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yml
45 lines (44 loc) · 1.09 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'
services:
console:
image: gitmesh-console:0.1
ports:
- 8080:8080
depends_on:
- controller
controller:
image: gitmesh-controller-server:0.1
ports:
- 8081:8080
depends_on:
- db
environment:
gitmesh.url: http://localhost:8081
gitmesh.database.jdbcUrl: jdbc:mysql://db/gitmesh?useUnicode=true&characterEncoding=utf8
gitmesh.database.username: gitmesh
gitmesh.database.password: gitmesh
repository1:
image: gitmesh-repository-server:0.1
depends_on:
- controller
environment:
gitmesh.url: http://repository1:8080
gitmesh.controllerUrl: http://controller:8080
volumes:
- ./repos/node1:/repos
repository2:
image: gitmesh-repository-server:0.1
depends_on:
- controller
environment:
gitmesh.url: http://repository2:8080
gitmesh.controllerUrl: http://controller:8080
volumes:
- ./repos/node2:/repos
db:
image: mysql:5.7.22
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: gitmesh
MYSQL_PASSWORD: gitmesh
MYSQL_DATABASE: gitmesh