-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
93 lines (86 loc) · 1.91 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
version: '2.1'
services:
# ---------------------
# The rabbitMQ service
# ---------------------
rabbitmq:
image: "rabbitmq:3.7.8-management"
hostname: "rabbitmq"
environment:
RABBITMQ_DEFAULT_VHOST: "/"
expose:
- "15672"
- "5672"
labels:
NAME: "rabbitmq"
networks:
- fmu_network
# ---------------------
# The mariadb service
# ---------------------
mariadb:
image: 'bitnami/mariadb:10.1.37'
hostname: "mariadb"
healthcheck:
test: ["CMD", "mysqladmin", "ping", "--silent"]
environment:
- MARIADB_USER=hawkbit
- MARIADB_PASSWORD=hawkbit
- MARIADB_ROOT_PASSWORD=root
- MARIADB_DATABASE=hawkbit
volumes:
- './mariadb/:/var/lib/mysql/'
expose:
- "3306"
labels:
NAME: "mariadb"
networks:
- fmu_network
# ---------------------
# The hawkbit service
# ---------------------
hawkbit:
image: 'fullmetalupdate/hawkbit:v1.0'
hostname: "hawkbit"
links:
- mariadb
- rabbitmq
environment:
- 'SPRING_RABBITMQ_HOST=rabbitmq'
- 'SPRING_RABBITMQ_USERNAME=guest'
- 'SPRING_RABBITMQ_PASSWORD=guest'
- 'SPRING_DATASOURCE_URL=jdbc:mariadb://mariadb:3306/hawkbit'
- 'SPRING_DATASOURCE_USERNAME=hawkbit'
- 'SPRING_DATASOURCE_PASSWORD=hawkbit'
- 'SPRING_JPA_DATABASE=MYSQL'
expose:
- "8080"
ports:
- "8080:8080"
depends_on:
mariadb:
condition: service_healthy
labels:
NAME: "hawkbit"
networks:
- fmu_network
# ---------------------
# The OSTree service
# ---------------------
ostree:
image: 'fullmetalupdate/ostree-server:v1.0'
hostname: "OsTree"
volumes:
- ./ostree:/ostree
expose:
- "22"
- "8000"
ports:
- "8022:22"
- "8000:8000"
labels:
NAME: "OsTree"
networks:
- fmu_network
networks:
fmu_network: