-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
41 lines (38 loc) · 1.04 KB
/
docker-compose.yaml
File metadata and controls
41 lines (38 loc) · 1.04 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
services:
capital-gains-app:
image: amazoncorretto:21
container_name: capital-gains-app
volumes:
- ./target/capital-gains-1.0.0.jar:/capital-gains-1.0.0.jar
- ./examples:/examples
- ./logs:/logs
# command: ["java", "-jar", "./capital-gains-1.0.0.jar"]
command: [
"/bin/sh",
"-c",
"java -version && ls && java -jar capital-gains-1.0.0.jar < ./examples/input.txt > ./examples/output-result.txt"
]
networks:
capital-gains-localhost-test:
ipv4_address: 172.16.239.61
# capital-gains-app:
# build:
# context: /
# args:
# APP_VERSION: 1.0.0
# image: "capital-gains-app:1.0.0"
# container_name: capital-gains-app
# volumes:
# - ./examples/:/examples/
# - ./examples:/examples
# - ./logs:/logs
# networks:
# capital-gains-localhost-test:
# ipv4_address: 172.16.239.62
networks:
capital-gains-localhost-test:
name: capital-gains-localhost-test
driver: bridge
ipam:
config:
- subnet: 172.16.239.0/24