-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
45 lines (45 loc) · 948 Bytes
/
docker-compose.yaml
File metadata and controls
45 lines (45 loc) · 948 Bytes
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: '3'
services:
nginx:
build:
dockerfile: ./nginx/nginx.dockerfile
context: .
container_name: my-nginx
image: armandoss/my-nginx
restart: always
ports:
- 80:80
depends_on:
- "app1"
- "app2"
- "app3"
app1:
hostname: app1
restart: always
build: ./app
working_dir: /app
volumes:
- ./app:/app
ports:
- 8081:8081
command: mvn clean spring-boot:run -Drun.jvmArguments='-Dserver.port=8081'
app2:
hostname: app2
restart: always
build: ./app
working_dir: /app
volumes:
- ./app:/app
ports:
- 8082:8082
command: mvn clean spring-boot:run -Drun.jvmArguments='-Dserver.port=8082'
app3:
hostname: app3
restart: always
build: ./app
working_dir: /app
volumes:
- ./app:/app
ports:
- 8083:8083
command: mvn clean spring-boot:run -Drun.jvmArguments='-Dserver.port=8083'