-
Notifications
You must be signed in to change notification settings - Fork 48
/
Copy pathdocker-compose.yml
60 lines (55 loc) · 1.45 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
version: '3'
networks:
bridgx_net:
services:
####################### mariadb ########################
mysql:
container_name: mariadb-server
image: yobasystems/alpine-mariadb:10.5.11
network_mode: "host"
environment:
MYSQL_ROOT_PASSWORD: mtQ8chN2
MYSQL_DATABASE: bridgx
MYSQL_USER: gf
MYSQL_PASSWORD: [email protected]
# ports:
# - 3306:3306
volumes:
- ./init/mysql:/docker-entrypoint-initdb.d/
restart: always
####################### etcd ########################
etcd:
container_name: etcd-server
image: bitnami/etcd:3
network_mode: "host"
restart: always
environment:
- ALLOW_NONE_AUTHENTICATION=yes
- ETCD_ADVERTISE_CLIENT_URLS=http://etcd:2379
# ports:
# - 2379:2379
# - 2380:2380
####################### bridgx 1.0 ########################
api:
container_name: gf-bridgx-api
network_mode: "host"
build:
context: .
dockerfile: ./API.Dockerfile
# ports:
# - "9090:9090"
command: [ "bin/wait-for-api.sh" ]
depends_on:
- mysql
- etcd
scheduler:
container_name: gf-bridgx-scheduler
network_mode: "host"
build:
context: .
dockerfile: ./SCHEDULER.Dockerfile
# command: [ "bin/wait-for-it.sh", "127.0.0.1:3306", "--", "/bin/sh","/home/tiger/run_scheduler.sh" ]
command: [ "bin/wait-for-scheduler.sh" ]
depends_on:
- mysql
- etcd