-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (51 loc) · 1.09 KB
/
docker-compose.yml
File metadata and controls
52 lines (51 loc) · 1.09 KB
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
version: '3.3'
services:
application1:
build: ./application1
image: gmcagroup2/githubapp:application1
depends_on:
- mysql
deploy:
replicas: 2
update_config:
delay: 10s
parallelism: 1
failure_action: rollback
ports:
- target: 5000
published: 5000
protocol: tcp
env_file:
- db.env
application2:
build: ./application2
image: gmcagroup2/githubapp:application2
ports:
- target: 5001
published: 5001
protocol: tcp
application3:
build: ./application3
image: gmcagroup2/githubapp:application3
ports:
- target: 5002
published: 5002
protocol: tcp
application4:
build: ./application4
image: gmcagroup2/githubapp:application4
ports:
- target: 5003
published: 5003
protocol: tcp
mysql:
image: mysql:5.7
volumes:
- "mydb:/var/lib/mysql"
ports:
- target: 3306
published: 3306
environment:
MYSQL_DATABASE: prize
volumes:
mydb: