-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
92 lines (90 loc) · 1.47 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
services:
i1s3:
build:
context: .
dockerfile: i1s3.dockerfile
image: nowage/i1s3:oraclelinux9
i1:
build:
context: .
dockerfile: i1.dockerfile
container_name: i1
hostname: i1
networks:
- hnet
volumes:
- ./df/i1:/df
tty: true
depends_on:
- i1s3
- s1
- s2
- s3
# command: /root/setup-ssh.sh
s1:
build:
context: .
dockerfile: s.dockerfile
container_name: s1
hostname: s1
networks:
- hnet
ports:
- "2221:22"
- "8080:8080"
- "4040:4040"
- "8081:8081"
volumes:
- ./df/s1:/df
tty: true
depends_on:
- i1s3
s2:
build:
context: .
dockerfile: s.dockerfile
container_name: s2
hostname: s2
networks:
- hnet
ports:
- "2222:22"
- "8082:8081"
volumes:
- ./df/s2:/df
tty: true
depends_on:
- i1s3
s3:
build:
context: .
dockerfile: s.dockerfile
container_name: s3
hostname: s3
networks:
- hnet
ports:
- "2223:22"
- "8083:8081"
volumes:
- ./df/s3:/df
tty: true
depends_on:
- i1s3
m1:
image: mysql:latest
container_name: m1
hostname: m1
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: test_db
networks:
- hnet
ports:
- "3306:3306"
volumes:
- ./df/m1:/df
restart: always
networks:
hnet:
external: true